|
|||||||||
| 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.
| 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. |
static CodeTables |
getCodes()
Returns the codeTables. |
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). |
CodeTables |
getCodeTables(XMLSchema schema,
java.lang.String url,
java.net.URL xuiURL,
org.apache.xerces.xni.parser.XMLEntityResolver resolver)
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 |
getEditingTypeCache()
|
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(short type,
java.lang.String name)
Returns a global entity with a specific name. |
static org.apache.xerces.xs.XSObject |
getGlobalXSDInternalTypes(int type)
|
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. |
Document |
getSCDom()
|
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(short type,
java.lang.String name)
Returns true if a global entity with the given name is registered. |
boolean |
isSynced()
|
boolean |
isXUISchema()
|
boolean |
keepInMemory()
Returns true if this schema shouldnt be released. |
void |
putEditingTypeCache(Type edType)
|
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. |
static void |
releaseCodeTable(java.lang.String id)
|
static void |
releaseCodeTables()
Returns the codeTables. |
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 |
setKeepInMemory(boolean keep)
|
void |
setRootName(java.lang.String rootName)
Sets the root name for this schema. |
void |
setRootName(java.lang.String rootName,
java.lang.String rootNS)
Sets the root name for this schema. |
void |
setSCDom(Document document)
|
void |
setSynced(boolean synced)
|
void |
setXUISchema(boolean isXUISchema)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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 node
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 node| Method Detail |
|---|
public Type buildType(SchemaNode element)
XMLSchema
buildType in interface XMLSchemaXMLSchema.buildType(com.jaxfront.core.schema.SchemaNode)
public Type buildType(SchemaNode element,
TreeWalkingElementAnalyser analyser)
XMLSchema.buildType(com.jaxfront.core.schema.SchemaNode)public Document createDocument()
createDocument in interface XMLSchemapublic Document createDocument(java.util.Hashtable params)
createDocument in interface XMLSchemapublic Type createTypeCopy(SchemaNode element)
createTypeCopy in interface XMLSchemaelement - SchemaNode to create a type copy frompublic static CodeTables getCodes()
public CodeTables getCodeTables()
getCodeTables in interface XMLSchema
public CodeTables getCodeTables(XMLSchema schema,
java.lang.String url,
java.net.URL xuiURL)
XMLSchema
getCodeTables in interface XMLSchemaurl - location of the code table file (e.q. c:\temp\po.codes)
public CodeTables getCodeTables(XMLSchema schema,
java.lang.String url,
java.net.URL xuiURL,
org.apache.xerces.xni.parser.XMLEntityResolver resolver)
getCodeTables in interface XMLSchemaurl - location of the code table file (e.q. c:\temp\po.codes)public java.lang.String getDefaultNamespace()
getDefaultNamespace in interface XMLSchemapublic java.lang.String[] getDerivedTypeNames(java.lang.String abstractName)
getDerivedTypeNames in interface XMLSchemaabstractName - abstract schema base type
public java.util.Set getDerivedTypes(java.lang.String abstractName,
java.lang.String name)
getDerivedTypes in interface XMLSchemaschemaType - abstract schema base typename - derived type name to look for
public java.util.Set getDerivedTypes(java.lang.String abstractName,
java.lang.String name,
java.util.Set derivedTypes)
public Type getEditingType(Type edType)
public java.util.Map getEditingTypeCache()
public java.util.Map getGlobalElements()
XMLSchema
getGlobalElements in interface XMLSchemaXMLSchema.getGlobalElements()public java.util.Map getGlobalEntities()
getGlobalEntities in interface XMLSchemapublic SchemaNode getGlobalEntity(SchemaNode node)
getGlobalEntity in interface XMLSchema
public SchemaNode getGlobalEntity(short type,
java.lang.String name)
getGlobalEntity in interface XMLSchemaname - global entity name to look forpublic static org.apache.xerces.xs.XSObject getGlobalXSDInternalTypes(int type)
public java.lang.String getGroupName(org.apache.xerces.xs.XSObject modelGroup)
public java.lang.String getGroupQName(org.apache.xerces.xs.XSObject modelGroup)
public SchemaKey getKey(java.lang.String keyName)
getKey in interface XMLSchemapublic SchemaKeyRef getKeyRef(java.lang.String keyName)
getKeyRef in interface XMLSchemapublic java.lang.String getLocationPath()
XMLSchema
getLocationPath in interface XMLSchemaXMLSchema.getLocationPath()public java.util.Vector getNamespaceDeclarations(java.lang.String schemaLocation)
XMLSchema
getNamespaceDeclarations in interface XMLSchemacom.jaxfront.core.schema.XMLSchema#getAllXmlNS()
public java.util.Vector getNamespaceDeclarations(java.lang.String schemaLocation,
boolean isXuiDom)
XMLSchema
getNamespaceDeclarations in interface XMLSchemapublic java.util.Hashtable getNamespaceMapping()
getNamespaceMapping in interface XMLSchemapublic java.lang.String getNamespacePrefix(java.lang.String nsURI)
XMLSchema
getNamespacePrefix in interface XMLSchemansURI - a namespace URI
XMLSchema.getNamespacePrefix(java.lang.String)public org.apache.xerces.xs.StringList getNamespaceURIs()
XMLSchema
getNamespaceURIs in interface XMLSchemaXMLSchema.getNamespaceURIs()public SchemaNode getRootElement()
getRootElement in interface XMLSchemapublic java.lang.String getRootName()
getRootName in interface XMLSchemapublic Type getRootType()
getRootType in interface XMLSchemapublic Document getSCDom()
getSCDom in interface XMLSchemapublic java.util.Map getSchemaRootNodeAttributes()
XMLSchema
getSchemaRootNodeAttributes in interface XMLSchemapublic java.lang.String getTargetNamespace()
getTargetNamespace in interface XMLSchemapublic Type getType(SchemaNode element)
XMLSchema
getType in interface XMLSchemaelement - 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 XMLSchemaXMLSchema.getType(com.jaxfront.core.schema.SchemaNode)public java.net.URL getURL()
getURL in interface XMLSchemapublic void initializeXSDKeySystem(Document dom)
public boolean isDefaultNamespace(java.lang.String ns)
XMLSchema
isDefaultNamespace in interface XMLSchema
public boolean isGlobalEntity(short type,
java.lang.String name)
XMLSchema
isGlobalEntity in interface XMLSchemaname - global entity name to look forpublic boolean isSynced()
isSynced in interface XMLSchemapublic boolean isXUISchema()
isXUISchema in interface XMLSchemaXMLSchema.isXUISchema()public boolean keepInMemory()
XMLSchema
keepInMemory in interface XMLSchemapublic void putEditingTypeCache(Type edType)
public void registerEditingType(Type edType)
public void registerKey(java.lang.String keyName,
SchemaKey element)
XMLSchema
registerKey in interface XMLSchemakeyName - 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 XMLSchemakeyName - name of the key referenceelement - holding schema elementXMLSchema.registerKeyRef(java.lang.String, com.jaxfront.core.schema.SchemaKeyRef)public void release()
release in interface XMLSchemapublic static void releaseCodeTable(java.lang.String id)
public static void releaseCodeTables()
public void releaseGlobalXUIDefinitions()
XMLSchema
releaseGlobalXUIDefinitions in interface XMLSchemaXMLSchema.releaseGlobalXUIDefinitions()public void setBase(java.net.URL base)
XMLSchema
setBase in interface XMLSchemapublic void setKeepInMemory(boolean keep)
setKeepInMemory in interface XMLSchemapublic void setRootName(java.lang.String rootName)
XMLSchema
setRootName in interface XMLSchema
public void setRootName(java.lang.String rootName,
java.lang.String rootNS)
public void setSCDom(Document document)
setSCDom in interface XMLSchemapublic void setSynced(boolean synced)
setSynced in interface XMLSchemapublic void setXUISchema(boolean isXUISchema)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||