Class AppSchemaLocationResolver
- Object
-
- SchemaLocationResolver
-
- AppSchemaLocationResolver
-
- All Implemented Interfaces:
XSDSchemaLocationResolver
public class AppSchemaLocationResolver extends SchemaLocationResolver
ASchemaLocationResolverthat usesSchemaResolverto 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 SchemaLocationResolver
lookupDirectories, xsd
-
-
Constructor Summary
Constructors Constructor Description AppSchemaLocationResolver(SchemaResolver resolver)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringresolveSchemaLocation(XSDSchema schema, String uri, String location)Resolve imports and includes to local resources.StringtoString()We override this because the parenttoString()is horribly misleading.-
Methods inherited from class SchemaLocationResolver
canHandle
-
-
-
-
Constructor Detail
-
AppSchemaLocationResolver
public AppSchemaLocationResolver(SchemaResolver resolver)
Constructor.- Parameters:
resolver- the resolver used to locate schemas
-
-
Method Detail
-
resolveSchemaLocation
public String resolveSchemaLocation(XSDSchema schema, String uri, String location)
Resolve imports and includes to local resources.- Specified by:
resolveSchemaLocationin interfaceXSDSchemaLocationResolver- Overrides:
resolveSchemaLocationin classSchemaLocationResolver- 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 parenttoString()is horribly misleading.- Overrides:
toStringin classSchemaLocationResolver- See Also:
SchemaLocationResolver.toString()
-
-