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 voidaddDependencies(Set dependencies) Subclass hook to add additional dependencies.protected XSDSchemaBuilds 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.XSDSchemaLocatorOptionally, a schema locator that helps locating (other) schema's used for includes/imports that might already exist but are not in dependenciesvoidsetConfiguration(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:XSDThe namespace uri of the schema.- Specified by:
getNamespaceURIin classXSD- See Also:
-
getSchemaLocation
Description copied from class:XSDThe location on the local disk of the top level .xsd file which defines the schema.- Specified by:
getSchemaLocationin classXSD- See Also:
-
setConfiguration
- Parameters:
configuration-
-
createSchemaLocationResolver
- Overrides:
createSchemaLocationResolverin classXSD- See Also:
-
addDependencies
Description copied from class:XSDSubclass hook to add additional dependencies.- Overrides:
addDependenciesin classXSD- See Also:
-
createSchemaLocator
- Overrides:
createSchemaLocatorin classXSD
-
getSupplementarySchemaLocator
public XSDSchemaLocator getSupplementarySchemaLocator()Description copied from class:XSDOptionally, a schema locator that helps locating (other) schema's used for includes/imports that might already exist but are not in dependencies- Overrides:
getSupplementarySchemaLocatorin classXSD- Returns:
- Schema Locator
-
buildSchema
Description copied from class:XSDBuilds the schema from the .xsd file specified byXSD.getSchemaLocation()This method may be extended, but should not be overridden.
- Overrides:
buildSchemain classXSD- Throws:
IOException
-