org.geotools.xml
Class AppSchemaLocationResolver

java.lang.Object
  extended by org.geotools.xml.SchemaLocationResolver
      extended by org.geotools.xml.AppSchemaLocationResolver
All Implemented Interfaces:
org.eclipse.xsd.util.XSDSchemaLocationResolver

public class AppSchemaLocationResolver
extends SchemaLocationResolver

A SchemaLocationResolver that uses AppSchemaResolver to locate schema resources in a catalog, on the classpath, or in a cache..

Author:
Ben Caradoc-Davies, CSIRO Earth Science and Resource Engineering

Field Summary
 
Fields inherited from class org.geotools.xml.SchemaLocationResolver
lookupDirectories, xsd
 
Constructor Summary
AppSchemaLocationResolver(AppSchemaResolver resolver)
          Constructor.
 
Method Summary
 java.lang.String resolveSchemaLocation(org.eclipse.xsd.XSDSchema schema, java.lang.String uri, java.lang.String location)
          Resolve imports and includes to local resources.
 java.lang.String toString()
          We override this because the parent toString() is horribly misleading.
 
Methods inherited from class org.geotools.xml.SchemaLocationResolver
canHandle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppSchemaLocationResolver

public AppSchemaLocationResolver(AppSchemaResolver resolver)
Constructor.

Parameters:
resolver - the resolver used to locate schemas
Method Detail

resolveSchemaLocation

public java.lang.String resolveSchemaLocation(org.eclipse.xsd.XSDSchema schema,
                                              java.lang.String uri,
                                              java.lang.String location)
Resolve imports and includes to local resources.

Specified by:
resolveSchemaLocation in interface org.eclipse.xsd.util.XSDSchemaLocationResolver
Overrides:
resolveSchemaLocation in class SchemaLocationResolver
Parameters:
schema - the parent schema from which the import/include originates
uri - the namespace of an import (ignored in this implementation)
location - the URL of the import or include (may be relative)
See Also:
SchemaLocationResolver.resolveSchemaLocation(org.eclipse.xsd.XSDSchema, java.lang.String, java.lang.String)

toString

public java.lang.String toString()
We override this because the parent toString() is horribly misleading.

Overrides:
toString in class SchemaLocationResolver
See Also:
SchemaLocationResolver.toString()


Copyright © 1996-2010 Geotools. All Rights Reserved.