org.geotools.xml
Class AppSchemaLocationResolver
Object
SchemaLocationResolver
AppSchemaLocationResolver
- All Implemented Interfaces:
- XSDSchemaLocationResolver
public class AppSchemaLocationResolver
- extends SchemaLocationResolver
A SchemaLocationResolver
that uses SchemaResolver
to locate schema resources
in a catalog, on the classpath, or in a cache..
- Author:
- Ben Caradoc-Davies (CSIRO Earth Science and Resource Engineering)
AppSchemaLocationResolver
public AppSchemaLocationResolver(SchemaResolver resolver)
- Constructor.
- Parameters:
resolver
- the resolver used to locate schemas
resolveSchemaLocation
public String resolveSchemaLocation(XSDSchema schema,
String uri,
String location)
- Resolve imports and includes to local resources.
- Specified by:
resolveSchemaLocation
in interface XSDSchemaLocationResolver
- Overrides:
resolveSchemaLocation
in class SchemaLocationResolver
- Parameters:
schema
- the parent schema from which the import/include originatesuri
- 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 String toString()
- We override this because the parent
toString()
is horribly misleading.
- Overrides:
toString
in class SchemaLocationResolver
- See Also:
SchemaLocationResolver.toString()
Copyright © 1996-2014 Geotools. All Rights Reserved.