public class SchemaFactory extends Object
Example Use:
Schema x = SchemaFactory.getInstance("MyTargetNameSpace",new URI("MyNameSpaceURI");
Modifier and Type | Field and Description |
---|---|
protected static SchemaFactory |
is |
Modifier | Constructor and Description |
---|---|
protected |
SchemaFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static SchemaFactory |
getInstance() |
static Schema |
getInstance(String targetNamespace) |
static Schema |
getInstance(URI targetNamespace)
Returns an instance of the targetNamespace if it can be found ... null otherwise.
|
static Schema |
getInstance(URI targetNamespace,
InputStream is1) |
static Schema |
getInstance(URI targetNamespace,
InputStream is1,
Level level) |
static Schema |
getInstance(URI targetNamespace,
URI desiredSchema)
Returns an instance of the desired class.
|
static Schema |
getInstance(URI targetNamespace,
URI desiredSchema,
Level level)
Returns an instance of the desired class.
|
protected XSISAXHandler |
getSAXHandler(URI uri) |
static Schema[] |
getSchemas(String prefix) |
static void |
registerSchema(URI targetNamespace,
Schema schema)
Registers a Schema instance with the factory.
|
protected static SchemaFactory is
protected static SchemaFactory getInstance()
public static Schema getInstance(URI targetNamespace, URI desiredSchema) throws SAXException
targetNamespace
- desiredSchema
- URI the uri of which you want a schema instance.SAXException
public static Schema getInstance(URI targetNamespace, InputStream is1) throws SAXException
SAXException
public static Schema getInstance(URI targetNamespace)
targetNamespace
- #registerSchema(Strin,Schema)
public static Schema getInstance(URI targetNamespace, URI desiredSchema, Level level) throws SAXException
targetNamespace
- The targetNamespace to search for.desiredSchema
- URI the uri of which you want a schema instance.level
- LevelSAXException
- When something goes wrongprotected XSISAXHandler getSAXHandler(URI uri)
public static Schema getInstance(URI targetNamespace, InputStream is1, Level level) throws SAXException
SAXException
public static void registerSchema(URI targetNamespace, Schema schema)
targetNamespace
- schema
- Copyright © 1996–2019 Geotools. All rights reserved.