|
||||||||||
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_TYPE
static final int NODE_ELEMENT
Method Detail |
---|
SchemaNode getRoot()
java.lang.String getXPath()
java.lang.String getXPath(SchemaNode root)
org.apache.xerces.xs.XSObject getNode()
java.lang.String getDefaultValue()
java.lang.String getFixedValue()
int getMaxOccurs()
int getMinOccurs()
java.lang.String getQName()
getQName
in interface QName
java.lang.String getName()
getName
in interface QName
java.lang.String getNamespacePrefix()
java.lang.String getRefName()
getRefName
in interface QName
XMLSchema getSchema()
SchemaType getSchemaType()
java.lang.String getTargetNS()
boolean hasType()
boolean isAnonymous()
boolean isChoice()
boolean isGlobalReference()
boolean isGroup()
boolean isReferenceWithNoExtension()
boolean hasExtension()
boolean isReferenceToGlobalType()
boolean isReferenceToGlobalElement()
boolean isReferenceToGlobalGroup()
boolean isRequired()
boolean isSimple()
void release()
void setSchemaType(SchemaType type)
type
- XML Schema type (simple or complex)java.util.ArrayList getSchemaKeyRefs()
java.util.Hashtable getSchemaKeys()
boolean hasSchemaKeys()
void putSchemaKey(SchemaNode selectorNode, SchemaKey schemakey)
boolean hasSchemaKeyRefs()
void putSchemaKeyRef(SchemaNode selectorKeyNode, SchemaKeyRef schemakey)
void markAsOptional()
SchemaNode getSubElement(java.lang.String name)
boolean isGlobal()
boolean isGlobalType()
boolean hasUnnamedOptionalParent()
void markAsUnnamedOptionalParent()
java.util.Hashtable getAnnotation()
SchemaNode getParent()
java.lang.String getLocation()
SchemaNode[] getElementSet()
void setAnonymousGroupIndex(int anonymousGroupIndex)
int getAnonymousGroupIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |