| java.lang.Object org.geotools.xml.SchemaFactory
All known Subclasses: org.geotools.data.wfs.WFSSchemaFactory,
SchemaFactory | public class SchemaFactory (Code) | | SchemaFactory purpose.
This is the main entry point into the XSI parsing routines.
Example Use:
Schema x = SchemaFactory.getInstance("MyTargetNameSpace",new URI("MyNameSpaceURI");
author: dzwiers, Refractions Research, Inc. http://www.refractions.net author: $Author:$ (last modification) version: $Id: SchemaFactory.java 26549 2007-08-14 18:00:35Z aaime $ |
getInstance | public static Schema getInstance(URI targetNamespace, URI desiredSchema) throws SAXException(Code) | | Returns an instance of the desired class. There is no provision for: a)
same instances each call b) different instances each call c) this
factory being thread safe
Parameters: targetNamespace - Parameters: desiredSchema - URI the uri of which you want a schema instance. Schema an instance of the desired schema. throws: SAXException - |
getInstance | public static synchronized Schema getInstance(URI targetNamespace)(Code) | | Returns an instance of the targetNamespace if it can be found ... null
otherwise. targetNamespaces which can be found are either hard-coded
namespaces (SchemaFactory.properties), have already been parsed or were
registered.
Parameters: targetNamespace - See Also: SchemaFactory.registerSchema(Strin,Schema) |
getInstance | public static synchronized Schema getInstance(URI targetNamespace, URI desiredSchema, Level level) throws SAXException(Code) | | Returns an instance of the desired class. There is no provision for: a)
same instances each call b) different instances each call c) this
factory being thread safe
Parameters: targetNamespace - The targetNamespace to search for. Parameters: desiredSchema - URI the uri of which you want a schema instance. Parameters: level - Level Schema an instance of the desired schema. throws: SAXException - When something goes wrong |
registerSchema | public static void registerSchema(URI targetNamespace, Schema schema)(Code) | | Registers a Schema instance with the factory. A clone is NOT created
within this method. The Schema passed in is associated with the
specified targetNamespace. The Schema is not tested to ensure the
intended targetNamespace (schema.getTargetNamespace()) is equal to
targetNamespace. The ramifications is that you may hack wildly within
the repository, but we aware you may have some 'undocumented features'
as a result (odd Schemas being returned).
Parameters: targetNamespace - Parameters: schema - |
|
|