Class AppSchemaXSD
-
public class AppSchemaXSD extends XSD
XSDthat usesSchemaResolverto 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
Constructors Constructor Description AppSchemaXSD(String namespaceUri, String schemaLocation, SchemaResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDependencies(Set dependencies)Subclass hook to add additional dependencies.protected XSDSchemabuildSchema()Builds the schema from the .xsd file specified byXSD.getSchemaLocation()SchemaLocationResolvercreateSchemaLocationResolver()SchemaLocatorcreateSchemaLocator()StringgetNamespaceURI()The namespace uri of the schema.StringgetSchemaLocation()The location on the local disk of the top level .xsd file which defines the schema.XSDSchemaLocatorgetSupplementarySchemaLocator()Optionally, 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 Detail
-
AppSchemaXSD
public AppSchemaXSD(String namespaceUri, String schemaLocation, SchemaResolver resolver)
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI()
Description copied from class:XSDThe namespace uri of the schema.- Specified by:
getNamespaceURIin classXSD- See Also:
XSD.getNamespaceURI()
-
getSchemaLocation
public String 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:
XSD.getSchemaLocation()
-
setConfiguration
public void setConfiguration(AppSchemaConfiguration configuration)
- Parameters:
configuration-
-
createSchemaLocationResolver
public SchemaLocationResolver createSchemaLocationResolver()
- Overrides:
createSchemaLocationResolverin classXSD- See Also:
XSD.createSchemaLocationResolver()
-
addDependencies
protected void addDependencies(Set dependencies)
Description copied from class:XSDSubclass hook to add additional dependencies.- Overrides:
addDependenciesin classXSD- See Also:
XSD.addDependencies(java.util.Set)
-
createSchemaLocator
public SchemaLocator 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
protected XSDSchema buildSchema() throws IOExceptionDescription 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
-
-