Class AppSchemaXSD
XSD
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), Niels Charlier (Curtin University of Technology)
-
Field Summary
Fields inherited from class XSD
entityResolver, LOGGER, schema, typeMappingProfile, typeSchema
-
Constructor Summary
ConstructorsConstructorDescriptionAppSchemaXSD
(String namespaceUri, String schemaLocation, SchemaResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDependencies
(Set dependencies) Subclass hook to add additional dependencies.protected XSDSchema
Builds the schema from the .xsd file specified byXSD.getSchemaLocation()
The namespace uri of the schema.The location on the local disk of the top level .xsd file which defines the schema.XSDSchemaLocator
Optionally, a schema locator that helps locating (other) schema's used for includes/imports that might already exist but are not in dependenciesvoid
setConfiguration
(AppSchemaConfiguration configuration) Methods inherited from class XSD
allDependencies, buildTypeMappingProfile, buildTypeSchema, dispose, equals, getAllDependencies, getAllTypeMappingProfiles, getDependencies, getSchema, getTypeMappingProfile, getTypeSchema, hashCode, name, qName, toString
-
Constructor Details
-
AppSchemaXSD
-
-
Method Details
-
getNamespaceURI
Description copied from class:XSD
The namespace uri of the schema.- Specified by:
getNamespaceURI
in classXSD
- See Also:
-
getSchemaLocation
Description copied from class:XSD
The location on the local disk of the top level .xsd file which defines the schema.- Specified by:
getSchemaLocation
in classXSD
- See Also:
-
setConfiguration
- Parameters:
configuration
-
-
createSchemaLocationResolver
- Overrides:
createSchemaLocationResolver
in classXSD
- See Also:
-
addDependencies
Description copied from class:XSD
Subclass hook to add additional dependencies.- Overrides:
addDependencies
in classXSD
- See Also:
-
createSchemaLocator
- Overrides:
createSchemaLocator
in classXSD
-
getSupplementarySchemaLocator
public XSDSchemaLocator getSupplementarySchemaLocator()Description copied from class:XSD
Optionally, a schema locator that helps locating (other) schema's used for includes/imports that might already exist but are not in dependencies- Overrides:
getSupplementarySchemaLocator
in classXSD
- Returns:
- Schema Locator
-
buildSchema
Description copied from class:XSD
Builds the schema from the .xsd file specified byXSD.getSchemaLocation()
This method may be extended, but should not be overridden.
- Overrides:
buildSchema
in classXSD
- Throws:
IOException
-