|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.reload.moonunit.schema.ReloadSchema
The ReloadSchema Class - a Java representation of an XML Schema. Together with certain XML Schema helper files an XML Schema is read in, parsed and constructed in memory as a hierarchical linked list of ReloadSchemaNode objects - ReloadSchemaElement and ReloadSchemaAttribute.
It relies on Castor (www.castor.org) and JDOM (www.jdom.org) to do the donkey work.
Field Summary | |
protected org.exolab.castor.xml.schema.Schema |
_castorSchema
The Castor Schema that we will query. |
Method Summary | |
protected org.exolab.castor.xml.schema.Schema |
getCastorSchema()
Get the raw Castor Schema |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Returns the namespace URI associated with the given prefix. |
static ReloadSchema |
getReloadSchema(java.io.File fileSpec,
java.lang.String rootName)
Factory method for getting a static re-usable ReloadSchema |
ReloadSchemaElement |
getRootElement()
Get the root element |
java.lang.String |
getRootElementName()
Get the name of the Root Element in this Schema |
java.lang.String |
getSchemaLocation()
Returns the full absolute path schemaLocation hint provided for this schema |
java.lang.String |
getSchemaLocation(java.lang.String namespaceURI)
Get the schemaLocation for a given Namespace URI |
java.lang.String |
getSchemaName()
Returns the short schemaLocation hint provided of this schema |
java.lang.String |
getSchemaName(java.lang.String namespaceURI)
Get the short schemaLocation for a given Namespace URI |
java.lang.String |
getSchemaNamespace()
Returns the namespace of the XML Schema Note: This is not the same as targetNamespace. |
java.lang.String |
getTargetNamespace()
Returns the target namespace for this Schema, or null if no namespace has been defined. |
protected org.exolab.castor.xml.schema.Schema |
loadCastorSchema(java.io.File schemaFile)
Load the Castor Schema |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.exolab.castor.xml.schema.Schema _castorSchema
Method Detail |
public static ReloadSchema getReloadSchema(java.io.File fileSpec, java.lang.String rootName) throws ReloadSchemaException
fileSpec
- The file of the Specification Schema XSD to getrootName
- We need to know the root name element. This is found in
the Helper file.
ReloadSchemaException
- if something goes wrongpublic ReloadSchemaElement getRootElement()
public java.lang.String getRootElementName()
public java.lang.String getTargetNamespace()
public java.lang.String getSchemaNamespace()
public java.lang.String getSchemaLocation()
public java.lang.String getSchemaLocation(java.lang.String namespaceURI)
public java.lang.String getSchemaName()
public java.lang.String getSchemaName(java.lang.String namespaceURI)
public java.lang.String getNamespaceURI(java.lang.String prefix)
protected org.exolab.castor.xml.schema.Schema getCastorSchema()
protected org.exolab.castor.xml.schema.Schema loadCastorSchema(java.io.File schemaFile) throws java.io.IOException
schemaFile
- The XML Schema File
java.io.IOException
|
VdexReload 1.1.3 API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |