|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SchemaNode
Represents an XML Schema element from the XML Schema holding a simple or a complex XML SchemaType.
| Field Summary | |
|---|---|
static int |
NODE_ELEMENT
|
static int |
NODE_TYPE
|
| Method Summary | |
|---|---|
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 |
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 a SchemaType has been assigned yet. |
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 |
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 selectorKeyNode,
SchemaKeyRef schemakey)
|
void |
release()
Release the resources of this schema element. |
void |
setAnonymousGroupIndex(int anonymousGroupIndex)
|
void |
setSchemaType(SchemaType type)
Sets the SchemaType. |
| Methods inherited from interface com.jaxfront.core.schema.QName |
|---|
getNamespace |
| Field Detail |
|---|
static final int NODE_ELEMENT
static final int NODE_TYPE
| Method Detail |
|---|
java.util.Hashtable getAnnotation()
int getAnonymousGroupIndex()
java.lang.String getDefaultValue()
SchemaNode[] getElementSet()
java.lang.String getFixedValue()
java.lang.String getLocation()
int getMaxOccurs()
int getMinOccurs()
java.lang.String getName()
getName in interface QNamejava.lang.String getNamespacePrefix()
org.apache.xerces.xs.XSObject getNode()
SchemaNode getParent()
java.lang.String getQName()
getQName in interface QNamejava.lang.String getRefName()
getRefName in interface QNameSchemaNode getRoot()
XMLSchema getSchema()
java.util.ArrayList getSchemaKeyRefs()
java.util.Hashtable getSchemaKeys()
SchemaType getSchemaType()
SchemaNode getSubElement(java.lang.String name)
java.lang.String getTargetNS()
java.lang.String getXPath()
java.lang.String getXPath(SchemaNode root)
boolean hasExtension()
boolean hasSchemaKeyRefs()
boolean hasSchemaKeys()
boolean hasType()
boolean hasUnnamedOptionalParent()
boolean isAnonymous()
boolean isChoice()
boolean isGlobal()
boolean isGlobalReference()
boolean isGlobalType()
boolean isGroup()
boolean isReferenceToGlobalElement()
boolean isReferenceToGlobalGroup()
boolean isReferenceToGlobalType()
boolean isReferenceWithNoExtension()
boolean isRequired()
boolean isSimple()
void markAsOptional()
void markAsUnnamedOptionalParent()
void putSchemaKey(SchemaNode selectorNode,
SchemaKey schemakey)
void putSchemaKeyRef(SchemaNode selectorKeyNode,
SchemaKeyRef schemakey)
void release()
void setAnonymousGroupIndex(int anonymousGroupIndex)
void setSchemaType(SchemaType type)
type - XML Schema type (simple or complex)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||