org.geotools.xml
Class AppSchemaXSD

Object
  extended by XSD
      extended by AppSchemaXSD

public class AppSchemaXSD
extends XSD

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
LOGGER, schema, typeMappingProfile, typeSchema
 
Constructor Summary
AppSchemaXSD(String namespaceUri, String schemaLocation, SchemaResolver resolver)
           
 
Method Summary
protected  void addDependencies(Set dependencies)
          Subclass hook to add additional dependencies.
protected  XSDSchema buildSchema()
          Builds the schema from the .xsd file specified by XSD.getSchemaLocation() This method may be extended, but should not be overridden.
 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 dependencies
 void setConfiguration(AppSchemaConfiguration configuration)
           
 
Methods inherited from class XSD
allDependencies, buildTypeMappingProfile, buildTypeSchema, dispose, equals, getAllDependencies, getAllTypeMappingProfiles, getDependencies, getSchema, getTypeMappingProfile, getTypeSchema, hashCode, name, qName, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppSchemaXSD

public AppSchemaXSD(String namespaceUri,
                    String schemaLocation,
                    SchemaResolver resolver)
Parameters:
namespaceUri -
schemaLocation -
resolver -
Method Detail

getNamespaceURI

public String getNamespaceURI()
Description copied from class: XSD
The namespace uri of the schema.

Specified by:
getNamespaceURI in class XSD
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 class XSD
See Also:
XSD.getSchemaLocation()

setConfiguration

public void setConfiguration(AppSchemaConfiguration configuration)
Parameters:
configuration -

createSchemaLocationResolver

public SchemaLocationResolver createSchemaLocationResolver()
Overrides:
createSchemaLocationResolver in class XSD
See Also:
XSD.createSchemaLocationResolver()

addDependencies

protected void addDependencies(Set dependencies)
Description copied from class: XSD
Subclass hook to add additional dependencies.

Overrides:
addDependencies in class XSD
See Also:
XSD.addDependencies(java.util.Set)

createSchemaLocator

public SchemaLocator createSchemaLocator()
Overrides:
createSchemaLocator in class XSD

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 class XSD
Returns:
Schema Locator

buildSchema

protected XSDSchema buildSchema()
                         throws IOException
Description copied from class: XSD
Builds the schema from the .xsd file specified by XSD.getSchemaLocation()

This method may be extended, but should not be overridden.

Overrides:
buildSchema in class XSD
Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.