|
||||||||||
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 occurspublic SchemaNodeImpl(org.apache.xerces.xs.XSObject node, XMLSchema schema, int minOccurs, int maxOccurs, SchemaNode parent)
node
- orcale XSDNodeschema
- an XML SchemaminOccurs
- min occursmaxOccurs
- max occurspublic 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 occurspublic 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 counterpublic 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 counterMethod Detail |
---|
public void finalAnalyse()
public java.lang.String getDefaultValue()
getDefaultValue
in interface SchemaNode
public java.lang.String getFixedValue()
getFixedValue
in interface SchemaNode
public int getMaxOccurs()
getMaxOccurs
in interface SchemaNode
public int getMinOccurs()
getMinOccurs
in interface SchemaNode
public java.lang.String getQName()
SchemaNode
getQName
in interface QName
getQName
in interface SchemaNode
public java.lang.String getName()
SchemaNode
getName
in interface QName
getName
in interface SchemaNode
SchemaNode.getName()
public java.lang.String getNamespacePrefix()
SchemaNode
getNamespacePrefix
in interface SchemaNode
SchemaNode.getNamespacePrefix()
public java.lang.String getRefName()
SchemaNode
getRefName
in interface QName
getRefName
in interface SchemaNode
SchemaNode.getRefName()
public XMLSchema getSchema()
getSchema
in interface SchemaNode
public SchemaType getSchemaType()
getSchemaType
in interface SchemaNode
public java.lang.String getTargetNS()
getTargetNS
in interface SchemaNode
public boolean hasType()
hasType
in interface SchemaNode
public SchemaNode getRoot()
getRoot
in interface SchemaNode
public java.lang.String getXPath()
getXPath
in interface SchemaNode
public java.lang.String getXPath(SchemaNode root)
getXPath
in interface SchemaNode
public boolean isAnonymous()
isAnonymous
in interface SchemaNode
public boolean isChoice()
isChoice
in interface SchemaNode
public boolean isGlobalReference()
SchemaNode
isGlobalReference
in interface SchemaNode
SchemaNode.isGlobalReference()
public boolean isGroup()
isGroup
in interface SchemaNode
public boolean isRequired()
isRequired
in interface SchemaNode
public boolean isSimple()
isSimple
in interface SchemaNode
public org.apache.xerces.xs.XSObject getNode()
getNode
in interface SchemaNode
public void release()
SchemaNode
release
in interface SchemaNode
SchemaNode.release()
public void setSchemaType(SchemaType type)
setSchemaType
in interface SchemaNode
type
- XML Schema type (simple or complex)public java.lang.String toString()
toString
in class java.lang.Object
public void markAsOptional()
SchemaNode
markAsOptional
in interface SchemaNode
public SchemaNode getSubElement(java.lang.String name)
SchemaNode
getSubElement
in interface SchemaNode
public boolean isGlobal()
SchemaNode
isGlobal
in interface SchemaNode
public java.util.Hashtable getAnnotation()
SchemaNode
getAnnotation
in interface SchemaNode
public SchemaNode getParent()
SchemaNode
getParent
in interface SchemaNode
public java.lang.String getLocation()
SchemaNode
getLocation
in interface SchemaNode
public void setName(java.lang.String name)
public java.util.ArrayList getSchemaKeyRefs()
getSchemaKeyRefs
in interface SchemaNode
com.jaxfront.core.schema.SchemaNode#getKeyField()
public java.util.Hashtable getSchemaKeys()
getSchemaKeys
in interface SchemaNode
com.jaxfront.core.schema.SchemaNode#getKeyField()
public boolean hasSchemaKeys()
hasSchemaKeys
in interface SchemaNode
public void putSchemaKey(SchemaNode selectorNode, SchemaKey schemakey)
putSchemaKey
in interface SchemaNode
com.jaxfront.core.schema.SchemaNode#addKey(com.jaxfront.core.schema.SchemaKey)
public boolean hasSchemaKeyRefs()
hasSchemaKeyRefs
in interface SchemaNode
com.jaxfront.core.schema.SchemaNode#isKey()
public void putSchemaKeyRef(SchemaNode selectorKeyRefNode, SchemaKeyRef schemakey)
putSchemaKeyRef
in interface SchemaNode
public SchemaNode[] getElementSet()
SchemaNode
getElementSet
in interface SchemaNode
public 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 SchemaNode
public boolean isReferenceToGlobalGroup()
isReferenceToGlobalGroup
in interface SchemaNode
public boolean isReferenceToGlobalElement()
SchemaNode
isReferenceToGlobalElement
in interface SchemaNode
public void setGroupRefName(java.lang.String groupRefName)
public boolean hasUnnamedOptionalParent()
hasUnnamedOptionalParent
in interface SchemaNode
public void markAsUnnamedOptionalParent()
markAsUnnamedOptionalParent
in interface SchemaNode
public void setAnonymousGroupIndex(int anonymousGroupIndex)
setAnonymousGroupIndex
in interface SchemaNode
public boolean hasExtension()
hasExtension
in interface SchemaNode
public boolean isReferenceWithNoExtension()
SchemaNode
isReferenceWithNoExtension
in interface SchemaNode
public int getAnonymousGroupIndex()
getAnonymousGroupIndex
in interface SchemaNode
public boolean isGlobalType()
isGlobalType
in interface SchemaNode
public 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 |