|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLSchema
Represents a W3C XML Schema. Every schema is holding the root name, available code tables and all global entities.
Method Summary | |
---|---|
Type |
buildType(SchemaNode element)
Returns the analysed JAXFront type according to my schema element children. |
Document |
createDocument()
Returns a new JAXFront Document. |
Document |
createDocument(java.util.Hashtable params)
Returns a new JAXFront Document. |
Type |
createTypeCopy(SchemaNode element)
Creates a copy of the analysed JAXFront type for the passing element. |
CodeTables |
getCodeTables()
Returns a loaded code tables for this XML Schema. |
CodeTables |
getCodeTables(XMLSchema schema,
java.lang.String url,
java.net.URL xuiURL)
Returns all loaded code tables for a specific url (e.q. po.codes). |
java.lang.String |
getDefaultNamespace()
Returns the default namespace of this schema. |
java.lang.String[] |
getDerivedTypeNames(java.lang.String abstractName)
Returns all derived type names whith a specific name of a submitted abstract type. |
java.util.Set |
getDerivedTypes(java.lang.String abstractName,
java.lang.String name)
Returns all derived types whith a specific name of a submitted abstract type. |
java.util.Map |
getGlobalElements()
Returns all global elements of this schema. |
java.util.Map |
getGlobalEntities()
Returns all global entities of this schema. |
SchemaNode |
getGlobalEntity(SchemaNode node)
|
SchemaNode |
getGlobalEntity(java.lang.String name)
Returns a global entity with a specific name. |
SchemaKey |
getKey(java.lang.String name)
Returns a schema key. |
SchemaKeyRef |
getKeyRef(java.lang.String name)
Returns a schema key ref. |
java.lang.String |
getLocationPath()
Returns the absolute filepath that points to the schema. |
java.util.Vector |
getNamespaceDeclarations(java.lang.String schemaLocation)
Gets all namespace declarations of this schema. |
java.util.Vector |
getNamespaceDeclarations(java.lang.String schemaLocation,
boolean isXuiDom)
Gets all namespace declarations of this schema. |
java.util.Hashtable |
getNamespaceMapping()
|
java.lang.String |
getNamespacePrefix(java.lang.String nsURI)
Gets the prefix of a namespace URI. |
org.apache.xerces.xs.StringList |
getNamespaceURIs()
Gets all namespace URIs of this schema. |
SchemaNode |
getRootElement()
Returns the root element of this XML schema. |
java.lang.String |
getRootName()
Returns the logical XML Schema root name. |
Type |
getRootType()
Returns the analysed JAXFront type of the root element. |
java.util.Map |
getSchemaRootNodeAttributes()
Returns all attributes defined on schema node. |
java.lang.String |
getTargetNamespace()
Returns the target namespace of this schema. |
Type |
getType(SchemaNode element)
Get the analysed JAXFront Type from a Schema Element. |
Type |
getType(SchemaNode element,
TreeWalkingElementAnalyser analyser)
|
java.net.URL |
getURL()
Returns the url location of this schema. |
boolean |
isDefaultNamespace(java.lang.String ns)
Returns true if this schema is the xui.xsd. |
boolean |
isGlobalEntity(java.lang.String name)
Returns true if a global entity with the given name is registered. |
boolean |
isXUISchema()
|
void |
registerKey(java.lang.String keyName,
SchemaKey element)
Register a key. |
void |
registerKeyRef(java.lang.String keyName,
SchemaKeyRef element)
Register a key reference. |
void |
release()
Release all allocated global entities and derived types and any other resources added to this schema. |
void |
releaseGlobalXUIDefinitions()
Get rid of the global xui definitions in the global schema type entities. |
void |
setBase(java.net.URL base)
Set the base url of the XML schema. |
void |
setRootName(java.lang.String rootName)
Sets the root name for this schema. |
Method Detail |
---|
Document createDocument()
Document createDocument(java.util.Hashtable params)
CodeTables getCodeTables()
CodeTables getCodeTables(XMLSchema schema, java.lang.String url, java.net.URL xuiURL)
url
- location of the code table file (e.q. c:\temp\po.codes)java.util.Set getDerivedTypes(java.lang.String abstractName, java.lang.String name)
abstractName
- abstract element namename
- derived type name to look forjava.lang.String[] getDerivedTypeNames(java.lang.String abstractName)
abstractName
- abstract element namejava.util.Map getGlobalEntities()
SchemaNode getGlobalEntity(java.lang.String name)
name
- global entity name to look forSchemaNode getGlobalEntity(SchemaNode node)
boolean isGlobalEntity(java.lang.String name)
name
- global entity name to look forjava.util.Map getGlobalElements()
java.util.Map getSchemaRootNodeAttributes()
SchemaKey getKey(java.lang.String name)
SchemaKeyRef getKeyRef(java.lang.String name)
boolean isDefaultNamespace(java.lang.String ns)
boolean isXUISchema()
SchemaNode getRootElement()
java.lang.String getRootName()
Type getRootType()
java.lang.String getTargetNamespace()
java.lang.String getDefaultNamespace()
java.net.URL getURL()
java.lang.String getLocationPath()
void registerKey(java.lang.String keyName, SchemaKey element)
keyName
- name of the keyelement
- holding schema elementvoid registerKeyRef(java.lang.String keyName, SchemaKeyRef element)
keyName
- name of the key referenceelement
- holding schema elementvoid release()
void setRootName(java.lang.String rootName)
Type buildType(SchemaNode element)
Type getType(SchemaNode element)
element
- Schema Element to get the analysed JAXFront Type fromType getType(SchemaNode element, TreeWalkingElementAnalyser analyser)
void releaseGlobalXUIDefinitions()
java.lang.String getNamespacePrefix(java.lang.String nsURI)
nsURI
- a namespace URI
org.apache.xerces.xs.StringList getNamespaceURIs()
java.util.Vector getNamespaceDeclarations(java.lang.String schemaLocation)
java.util.Vector getNamespaceDeclarations(java.lang.String schemaLocation, boolean isXuiDom)
java.util.Hashtable getNamespaceMapping()
Type createTypeCopy(SchemaNode element)
element
- SchemaNode to create a type copy fromvoid setBase(java.net.URL base)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |