| java.lang.Object org.geotools.xml.SchemaLocator
SchemaLocator | public class SchemaLocator implements XSDSchemaLocator(Code) | | Creates a schema from scratch for a particular namespace.
This class works from a
org.geotools.xml.Configuration which defines information about
the schema.
Example usage:
Configuration myConfig = ...
String namespaceURI = myConfig.getNamesapceURI();
SchemaLocator locator = new SchemaLocator( myConfig );
XSDSchema schema = locator.locateSchema( null, namespaceURI, null, null);
author: Justin Deoliveira, The Open Planning Project |
Method Summary | |
protected XSDSchema | createSchema() Template method for creating the schema instance from the xml configuration.
Subclasses may with to override or exten this method. | public XSDSchema | locateSchema(XSDSchema schema, String namespaceURI, String rawSchemaLocationURI, String resolvedSchemaLocationURI) Creates the schema, returning null if the schema could not be created.
namespaceURI should not be null . |
schema | XSDSchema schema(Code) | | cached schema
|
SchemaLocator | public SchemaLocator(Configuration configuration)(Code) | | Creates a new schema location.
Parameters: configuration - the configuration defining information about the schema. |
locateSchema | public XSDSchema locateSchema(XSDSchema schema, String namespaceURI, String rawSchemaLocationURI, String resolvedSchemaLocationURI)(Code) | | Creates the schema, returning null if the schema could not be created.
namespaceURI should not be null . All other paramters are ignored.
This method caches the returned schema, and is thread safe.
See Also: XSDSchemaLocator.locateSchema(org.eclipse.xsd.XSDSchemajava.lang.Stringjava.lang.Stringjava.lang.String) |
|
|