|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSchemaLocator
public class SchemaLocator
Helper class which ensures that the xsd schema parser uses pre-build schema objects.
This class works from a XSD which contains a reference
to the schema.
Example usage:
XSD xsd = ...;
String namespaceURI = xsd.getNamesapceURI();
SchemaLocator locator = new SchemaLocator( xsd );
XSDSchema schema = locator.locateSchema( null, namespaceURI, null, null);
| Field Summary | |
|---|---|
protected static Logger |
LOGGER
logging instance |
protected XSD |
xsd
The xsd instance. |
| Constructor Summary | |
|---|---|
SchemaLocator(XSD xsd)
Creates a new instance of the schema locator. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(XSDSchema schema,
String namespaceURI,
String rawSchemaLocationURI,
String resolvedSchemaLocationURI)
Determines if the locator can locate a schema for the specified namespace and location. |
XSDSchema |
locateSchema(XSDSchema schema,
String namespaceURI,
String rawSchemaLocationURI,
String resolvedSchemaLocationURI)
Creates the schema, returning null if the schema could not be created. |
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Logger LOGGER
protected XSD xsd
| Constructor Detail |
|---|
public SchemaLocator(XSD xsd)
xsd - The XSD instance that references the schema to be "located".| Method Detail |
|---|
public boolean canHandle(XSDSchema schema,
String namespaceURI,
String rawSchemaLocationURI,
String resolvedSchemaLocationURI)
public XSDSchema locateSchema(XSDSchema schema,
String namespaceURI,
String rawSchemaLocationURI,
String resolvedSchemaLocationURI)
null if the schema could not be created.
namespaceURI should not be null. All other parameters are ignored.
locateSchema in interface XSDSchemaLocatorXSDSchemaLocator.locateSchema(org.eclipse.xsd.XSDSchema, java.lang.String, java.lang.String, java.lang.String)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||