|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jaxfront.core.schema.impl.XMLSchemaImpl
public class XMLSchemaImpl
Represents a W3C XML Schema (wrapping oracles XML Schema: oracle.xml.parser.schema.XMLSchema Every schema is holding the root name, available code tables and all global entities.
Field Summary | |
---|---|
boolean |
_isXUISchema
|
Constructor Summary | |
---|---|
XMLSchemaImpl(org.apache.xerces.xs.XSModel schema,
org.w3c.dom.ls.LSInput schemaInput,
java.lang.String rootName,
java.util.Hashtable namespaceMapping,
java.util.Hashtable schemaRootNodeAttributes)
Creates an XML Schema based on a oracle XMLSchema, a schemaURL and a root name. |
|
XMLSchemaImpl(org.apache.xerces.xs.XSModel schema,
java.net.URL schemaURL,
java.lang.String rootName,
java.util.Hashtable namespaceMapping,
java.util.Hashtable schemaRootNodeAttributes)
Creates an XML Schema based on a oracle XMLSchema, a schemaURL and a root name. |
Method Summary | |
---|---|
Type |
buildType(SchemaNode element)
Returns the analysed JAXFront type according to my schema element children. |
Type |
buildType(SchemaNode element,
TreeWalkingElementAnalyser analyser)
|
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 the codeTables. |
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.Set |
getDerivedTypes(java.lang.String abstractName,
java.lang.String name,
java.util.Set derivedTypes)
|
Type |
getEditingType(Type edType)
|
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. |
java.lang.String |
getGroupName(org.apache.xerces.xs.XSObject modelGroup)
|
java.lang.String |
getGroupQName(org.apache.xerces.xs.XSObject modelGroup)
|
SchemaKey |
getKey(java.lang.String keyName)
Returns a schema key. |
SchemaKeyRef |
getKeyRef(java.lang.String keyName)
Returns a schema key. |
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. |
void |
initializeXSDKeySystem(Document dom)
|
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 |
registerEditingType(Type edType)
|
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean _isXUISchema
Constructor Detail |
---|
public XMLSchemaImpl(org.apache.xerces.xs.XSModel schema, java.net.URL schemaURL, java.lang.String rootName, java.util.Hashtable namespaceMapping, java.util.Hashtable schemaRootNodeAttributes)
schema
- an oracle XML Schema (from oracle schema parser)schemaURL
- scheme url locationrootName
- name of the root nodepublic XMLSchemaImpl(org.apache.xerces.xs.XSModel schema, org.w3c.dom.ls.LSInput schemaInput, java.lang.String rootName, java.util.Hashtable namespaceMapping, java.util.Hashtable schemaRootNodeAttributes)
schema
- an oracle XML Schema (from oracle schema parser)schemaURL
- scheme url locationrootName
- name of the root nodeMethod Detail |
---|
public java.util.Map getSchemaRootNodeAttributes()
XMLSchema
getSchemaRootNodeAttributes
in interface XMLSchema
public Type buildType(SchemaNode element)
XMLSchema
buildType
in interface XMLSchema
XMLSchema.buildType(com.jaxfront.core.schema.SchemaNode)
public Type buildType(SchemaNode element, TreeWalkingElementAnalyser analyser)
XMLSchema.buildType(com.jaxfront.core.schema.SchemaNode)
public java.lang.String getNamespacePrefix(java.lang.String nsURI)
XMLSchema
getNamespacePrefix
in interface XMLSchema
nsURI
- a namespace URI
XMLSchema.getNamespacePrefix(java.lang.String)
public Document createDocument()
createDocument
in interface XMLSchema
public Document createDocument(java.util.Hashtable params)
createDocument
in interface XMLSchema
public Type createTypeCopy(SchemaNode element)
createTypeCopy
in interface XMLSchema
element
- SchemaNode to create a type copy frompublic CodeTables getCodeTables()
getCodeTables
in interface XMLSchema
public CodeTables getCodeTables(XMLSchema schema, java.lang.String url, java.net.URL xuiURL)
getCodeTables
in interface XMLSchema
url
- location of the code table file (e.q. c:\temp\po.codes)public java.util.Set getDerivedTypes(java.lang.String abstractName, java.lang.String name)
getDerivedTypes
in interface XMLSchema
schemaType
- abstract schema base typename
- derived type name to look forpublic java.lang.String[] getDerivedTypeNames(java.lang.String abstractName)
getDerivedTypeNames
in interface XMLSchema
abstractName
- abstract schema base typepublic java.util.Set getDerivedTypes(java.lang.String abstractName, java.lang.String name, java.util.Set derivedTypes)
public java.util.Map getGlobalEntities()
getGlobalEntities
in interface XMLSchema
public SchemaNode getGlobalEntity(java.lang.String name)
getGlobalEntity
in interface XMLSchema
name
- global entity name to look forpublic SchemaKey getKey(java.lang.String keyName)
getKey
in interface XMLSchema
public SchemaKeyRef getKeyRef(java.lang.String keyName)
getKeyRef
in interface XMLSchema
public SchemaNode getRootElement()
getRootElement
in interface XMLSchema
public java.lang.String getRootName()
getRootName
in interface XMLSchema
public Type getRootType()
getRootType
in interface XMLSchema
public java.lang.String getTargetNamespace()
getTargetNamespace
in interface XMLSchema
public boolean isDefaultNamespace(java.lang.String ns)
XMLSchema
isDefaultNamespace
in interface XMLSchema
public java.lang.String getDefaultNamespace()
getDefaultNamespace
in interface XMLSchema
public java.net.URL getURL()
getURL
in interface XMLSchema
public java.lang.String getLocationPath()
XMLSchema
getLocationPath
in interface XMLSchema
XMLSchema.getLocationPath()
public void initializeXSDKeySystem(Document dom)
public java.lang.String getGroupName(org.apache.xerces.xs.XSObject modelGroup)
public java.lang.String getGroupQName(org.apache.xerces.xs.XSObject modelGroup)
public boolean isXUISchema()
isXUISchema
in interface XMLSchema
XMLSchema.isXUISchema()
public void registerKey(java.lang.String keyName, SchemaKey element)
XMLSchema
registerKey
in interface XMLSchema
keyName
- name of the keyelement
- holding schema elementXMLSchema.registerKey(java.lang.String,
com.jaxfront.core.schema.SchemaKey)
public void registerKeyRef(java.lang.String keyName, SchemaKeyRef element)
XMLSchema
registerKeyRef
in interface XMLSchema
keyName
- name of the key referenceelement
- holding schema elementXMLSchema.registerKeyRef(java.lang.String,
com.jaxfront.core.schema.SchemaKeyRef)
public void release()
release
in interface XMLSchema
public void setRootName(java.lang.String rootName)
setRootName
in interface XMLSchema
public java.lang.String toString()
toString
in class java.lang.Object
public void releaseGlobalXUIDefinitions()
XMLSchema
releaseGlobalXUIDefinitions
in interface XMLSchema
XMLSchema.releaseGlobalXUIDefinitions()
public Type getType(SchemaNode element)
XMLSchema
getType
in interface XMLSchema
element
- Schema Element to get the analysed JAXFront Type fromXMLSchema.getType(com.jaxfront.core.schema.SchemaNode)
public Type getType(SchemaNode element, TreeWalkingElementAnalyser analyser)
getType
in interface XMLSchema
XMLSchema.getType(com.jaxfront.core.schema.SchemaNode)
public void registerEditingType(Type edType)
public Type getEditingType(Type edType)
public java.util.Map getGlobalElements()
XMLSchema
getGlobalElements
in interface XMLSchema
XMLSchema.getGlobalElements()
public org.apache.xerces.xs.StringList getNamespaceURIs()
XMLSchema
getNamespaceURIs
in interface XMLSchema
XMLSchema.getNamespaceURIs()
public java.util.Vector getNamespaceDeclarations(java.lang.String schemaLocation)
XMLSchema
getNamespaceDeclarations
in interface XMLSchema
com.jaxfront.core.schema.XMLSchema#getAllXmlNS()
public java.util.Vector getNamespaceDeclarations(java.lang.String schemaLocation, boolean isXuiDom)
XMLSchema
getNamespaceDeclarations
in interface XMLSchema
public java.util.Hashtable getNamespaceMapping()
getNamespaceMapping
in interface XMLSchema
public void setBase(java.net.URL base)
XMLSchema
setBase
in interface XMLSchema
public boolean isGlobalEntity(java.lang.String name)
XMLSchema
isGlobalEntity
in interface XMLSchema
name
- global entity name to look forpublic SchemaNode getGlobalEntity(SchemaNode node)
getGlobalEntity
in interface XMLSchema
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |