Class AppSchemaXSD
-
public class AppSchemaXSD extends XSD
XSD
that usesSchemaResolver
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
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 void
addDependencies(Set dependencies)
Subclass hook to add additional dependencies.protected XSDSchema
buildSchema()
Builds the schema from the .xsd file specified byXSD.getSchemaLocation()
SchemaLocationResolver
createSchemaLocationResolver()
SchemaLocator
createSchemaLocator()
String
getNamespaceURI()
The namespace uri of the schema.String
getSchemaLocation()
The location on the local disk of the top level .xsd file which defines the schema.XSDSchemaLocator
getSupplementarySchemaLocator()
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 Detail
-
AppSchemaXSD
public AppSchemaXSD(String namespaceUri, String schemaLocation, SchemaResolver resolver)
-
-
Method Detail
-
getNamespaceURI
public String getNamespaceURI()
Description copied from class:XSD
The namespace uri of the schema.- Specified by:
getNamespaceURI
in classXSD
- See Also:
XSD.getNamespaceURI()
-
getSchemaLocation
public String 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:
XSD.getSchemaLocation()
-
setConfiguration
public void setConfiguration(AppSchemaConfiguration configuration)
- Parameters:
configuration
-
-
createSchemaLocationResolver
public SchemaLocationResolver createSchemaLocationResolver()
- Overrides:
createSchemaLocationResolver
in classXSD
- See Also:
XSD.createSchemaLocationResolver()
-
addDependencies
protected void addDependencies(Set dependencies)
Description copied from class:XSD
Subclass hook to add additional dependencies.- Overrides:
addDependencies
in classXSD
- See Also:
XSD.addDependencies(java.util.Set)
-
createSchemaLocator
public SchemaLocator 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
protected XSDSchema buildSchema() throws IOException
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
-
-