|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jaxfront.core.schema.impl.SchemaNodeImpl
public class SchemaNodeImpl
Represents an XML Schema element from the XML Schema holding a simple or a complex XML SchemaType from the oracle Schema Parser (oracle.xml.parser.schema.XSDNode).
| Field Summary | |
|---|---|
static short |
GLOBAL_ATTRIBUTE
|
static short |
GLOBAL_ATTRIBUTEGROUP
|
static short |
GLOBAL_ELEMENT
|
static short |
GLOBAL_GROUP
|
static short |
GLOBAL_TYPE
|
static java.lang.String |
UNNAMED_ELEMENT
|
| Fields inherited from interface com.jaxfront.core.schema.SchemaNode |
|---|
NODE_ELEMENT, NODE_TYPE |
| Constructor Summary | |
|---|---|
SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
int unnamedCounter,
SchemaNode parent)
Creates an XML Schema element based on a oracle XSDNode, an XML Schema and the cardinalities of this element. |
|
SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
int unnamedCounter,
java.lang.String defaultValue,
java.lang.String fixedValue,
SchemaNode parent,
boolean isGlobal)
Creates an XML Schema element based on a oracle XSDNode, an XML Schema and the cardinalities of this element. |
|
SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
int unnamedCounter,
java.lang.String defaultValue,
java.lang.String fixedValue,
SchemaNode parent,
boolean isGlobal,
boolean initialize)
Creates an XML Schema element based on a oracle XSDNode, an XML Schema and the cardinalities of this element. |
|
SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
SchemaNode parent)
Creates an XML Schema element based on a oracle XSDNode, an XML Schema and the cardinalities of this element. |
|
SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
SchemaNode parent,
boolean isGlobal)
|
|
SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
java.lang.String defaultValue,
java.lang.String fixedValue,
SchemaNode parent)
Creates an XML Schema element based on a oracle XSDNode, an XML Schema and the cardinalities of this element. |
|
| Method Summary | |
|---|---|
static java.lang.String |
createQName(java.lang.String nameSpace,
java.lang.String name)
|
void |
finalAnalyse()
|
java.util.Hashtable |
getAnnotation()
Returns annotation for this Schema element. |
int |
getAnonymousGroupIndex()
|
java.lang.String |
getDefaultValue()
Returns the default value. |
SchemaNode[] |
getElementSet()
Returns the element set from the underlying schematype. |
java.lang.String |
getFixedValue()
Returns the fixed value. |
java.lang.String |
getLocation()
Returns location relative to its root (root or global type/element). |
int |
getMaxOccurs()
Returns the cardinality of the maximum occurance of this elment. |
int |
getMinOccurs()
Returns the cardinality of the maximum occurance of this elment. |
java.lang.String |
getName()
Returns the name specified in the XML Schema (without namespace prefix) |
java.lang.String |
getNamespace()
|
java.lang.String |
getNamespacePrefix()
Returns the namespace prefix of the current schema element |
org.apache.xerces.xs.XSObject |
getNode()
|
SchemaNode |
getParent()
Returns the schema element parent or null if this is the root. |
java.lang.String |
getQName()
Returns the name specified in the XML Schema (including namespace prefix). |
java.lang.String |
getRefName()
Returns name of the referenced type/element in the XML Schema. |
SchemaNode |
getRoot()
|
XMLSchema |
getSchema()
Returns the whole XML Schema definition. |
java.util.ArrayList |
getSchemaKeyRefs()
|
java.util.Hashtable |
getSchemaKeys()
|
SchemaType |
getSchemaType()
Returns a simple or a complex SchemaType. |
SchemaNode |
getSubElement(java.lang.String name)
Returns a direct sub schema element for a given name. |
java.lang.String |
getTargetNS()
Returns the target namespace. |
java.lang.String |
getXPath()
|
java.lang.String |
getXPath(SchemaNode root)
|
boolean |
hasExtension()
|
boolean |
hasSchemaKeyRefs()
|
boolean |
hasSchemaKeys()
|
boolean |
hasType()
Returns true if this schema element has an analysed JAXFront type. |
boolean |
hasUnnamedOptionalParent()
|
boolean |
isAnonymous()
Returns true if this element has no name. |
boolean |
isChoice()
Returns true if this element is a choice. |
boolean |
isGlobal()
Returns true if this element is a global Schema Element definition. |
boolean |
isGlobalAttribute()
|
boolean |
isGlobalAttributeGroup()
|
boolean |
isGlobalElement()
|
boolean |
isGlobalGroup()
|
boolean |
isGlobalReference()
Returns true if this element is a global schema element. |
boolean |
isGlobalType()
|
boolean |
isGroup()
Returns true if this element is a group. |
boolean |
isReferenceToGlobalElement()
Returns true if this element is a reference to a global schema Element only! |
boolean |
isReferenceToGlobalGroup()
|
boolean |
isReferenceToGlobalType()
Returns true if this element is a reference to a global schema Type only! |
boolean |
isReferenceWithNoExtension()
Returns true if this element is a reference to another schema element (isRef) or a simple reference to a global type with NO local extensions/restrictions. |
boolean |
isRequired()
Returns true if this element is mandatory. |
boolean |
isSimple()
Returns true if this element is a leaf. |
void |
markAsOptional()
Marks this element as optional. |
void |
markAsUnnamedOptionalParent()
|
void |
putSchemaKey(SchemaNode selectorNode,
SchemaKey schemakey)
|
void |
putSchemaKeyRef(SchemaNode selectorKeyRefNode,
SchemaKeyRef schemakey)
|
void |
release()
Release the resources of this schema element. |
void |
setAnonymousGroupIndex(int anonymousGroupIndex)
|
void |
setGroupRefName(java.lang.String groupRefName)
|
void |
setName(java.lang.String name)
|
void |
setSchemaType(SchemaType type)
Sets the SchemaType. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final short GLOBAL_TYPE
public static final short GLOBAL_ELEMENT
public static final short GLOBAL_ATTRIBUTE
public static final short GLOBAL_ATTRIBUTEGROUP
public static final short GLOBAL_GROUP
public static final java.lang.String UNNAMED_ELEMENT
| Constructor Detail |
|---|
public SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
java.lang.String defaultValue,
java.lang.String fixedValue,
SchemaNode parent)
node - orcale XSDNodeschema - an XML SchemaminOccurs - min occursmaxOccurs - max occurs
public SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
SchemaNode parent)
node - orcale XSDNodeschema - an XML SchemaminOccurs - min occursmaxOccurs - max occurs
public SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
SchemaNode parent,
boolean isGlobal)
public SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
int unnamedCounter,
SchemaNode parent)
node - orcale XSDNodeschema - an XML SchemaminOccurs - min occursmaxOccurs - max occurs
public SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
int unnamedCounter,
java.lang.String defaultValue,
java.lang.String fixedValue,
SchemaNode parent,
boolean isGlobal)
node - orcale XSDNodeschema - an XML SchemaminOccurs - min occursmaxOccurs - max occursint - unnamed counter
public SchemaNodeImpl(org.apache.xerces.xs.XSObject node,
XMLSchema schema,
int minOccurs,
int maxOccurs,
int unnamedCounter,
java.lang.String defaultValue,
java.lang.String fixedValue,
SchemaNode parent,
boolean isGlobal,
boolean initialize)
node - orcale XSDNodeschema - an XML SchemaminOccurs - min occursmaxOccurs - max occursint - unnamed counter| Method Detail |
|---|
public void finalAnalyse()
public java.lang.String getDefaultValue()
getDefaultValue in interface SchemaNodepublic java.lang.String getFixedValue()
getFixedValue in interface SchemaNodepublic int getMaxOccurs()
getMaxOccurs in interface SchemaNodepublic int getMinOccurs()
getMinOccurs in interface SchemaNodepublic java.lang.String getQName()
SchemaNode
getQName in interface QNamegetQName in interface SchemaNodepublic java.lang.String getName()
SchemaNode
getName in interface QNamegetName in interface SchemaNodeSchemaNode.getName()public java.lang.String getNamespacePrefix()
SchemaNode
getNamespacePrefix in interface SchemaNodeSchemaNode.getNamespacePrefix()public java.lang.String getRefName()
SchemaNode
getRefName in interface QNamegetRefName in interface SchemaNodeSchemaNode.getRefName()public XMLSchema getSchema()
getSchema in interface SchemaNodepublic SchemaType getSchemaType()
getSchemaType in interface SchemaNodepublic java.lang.String getTargetNS()
getTargetNS in interface SchemaNodepublic boolean hasType()
hasType in interface SchemaNodepublic SchemaNode getRoot()
getRoot in interface SchemaNodepublic java.lang.String getXPath()
getXPath in interface SchemaNodepublic java.lang.String getXPath(SchemaNode root)
getXPath in interface SchemaNodepublic boolean isAnonymous()
isAnonymous in interface SchemaNodepublic boolean isChoice()
isChoice in interface SchemaNodepublic boolean isGlobalReference()
SchemaNode
isGlobalReference in interface SchemaNodeSchemaNode.isGlobalReference()public boolean isGroup()
isGroup in interface SchemaNodepublic boolean isRequired()
isRequired in interface SchemaNodepublic boolean isSimple()
isSimple in interface SchemaNodepublic org.apache.xerces.xs.XSObject getNode()
getNode in interface SchemaNodepublic void release()
SchemaNode
release in interface SchemaNodeSchemaNode.release()public void setSchemaType(SchemaType type)
setSchemaType in interface SchemaNodetype - XML Schema type (simple or complex)public java.lang.String toString()
toString in class java.lang.Objectpublic void markAsOptional()
SchemaNode
markAsOptional in interface SchemaNodepublic SchemaNode getSubElement(java.lang.String name)
SchemaNode
getSubElement in interface SchemaNodepublic boolean isGlobal()
SchemaNode
isGlobal in interface SchemaNodepublic java.util.Hashtable getAnnotation()
SchemaNode
getAnnotation in interface SchemaNodepublic SchemaNode getParent()
SchemaNode
getParent in interface SchemaNodepublic java.lang.String getLocation()
SchemaNode
getLocation in interface SchemaNodepublic void setName(java.lang.String name)
public java.util.ArrayList getSchemaKeyRefs()
getSchemaKeyRefs in interface SchemaNodecom.jaxfront.core.schema.SchemaNode#getKeyField()public java.util.Hashtable getSchemaKeys()
getSchemaKeys in interface SchemaNodecom.jaxfront.core.schema.SchemaNode#getKeyField()public boolean hasSchemaKeys()
hasSchemaKeys in interface SchemaNode
public void putSchemaKey(SchemaNode selectorNode,
SchemaKey schemakey)
putSchemaKey in interface SchemaNodecom.jaxfront.core.schema.SchemaNode#addKey(com.jaxfront.core.schema.SchemaKey)public boolean hasSchemaKeyRefs()
hasSchemaKeyRefs in interface SchemaNodecom.jaxfront.core.schema.SchemaNode#isKey()
public void putSchemaKeyRef(SchemaNode selectorKeyRefNode,
SchemaKeyRef schemakey)
putSchemaKeyRef in interface SchemaNodepublic SchemaNode[] getElementSet()
SchemaNode
getElementSet in interface SchemaNodepublic java.lang.String getNamespace()
getNamespace in interface QName
public static java.lang.String createQName(java.lang.String nameSpace,
java.lang.String name)
public boolean isReferenceToGlobalType()
SchemaNode
isReferenceToGlobalType in interface SchemaNodepublic boolean isReferenceToGlobalGroup()
isReferenceToGlobalGroup in interface SchemaNodepublic boolean isReferenceToGlobalElement()
SchemaNode
isReferenceToGlobalElement in interface SchemaNodepublic void setGroupRefName(java.lang.String groupRefName)
public boolean hasUnnamedOptionalParent()
hasUnnamedOptionalParent in interface SchemaNodepublic void markAsUnnamedOptionalParent()
markAsUnnamedOptionalParent in interface SchemaNodepublic void setAnonymousGroupIndex(int anonymousGroupIndex)
setAnonymousGroupIndex in interface SchemaNodepublic boolean hasExtension()
hasExtension in interface SchemaNodepublic boolean isReferenceWithNoExtension()
SchemaNode
isReferenceWithNoExtension in interface SchemaNodepublic int getAnonymousGroupIndex()
getAnonymousGroupIndex in interface SchemaNodepublic boolean isGlobalType()
isGlobalType in interface SchemaNodepublic boolean isGlobalElement()
public boolean isGlobalAttribute()
public boolean isGlobalAttributeGroup()
public boolean isGlobalGroup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||