public class SchemaNode
extends java.lang.Object
SchemaNodeMap
that is keyed by XPaths.$Id $
Constructor and Description |
---|
SchemaNode(org.dom4j.Element e,
GlobalDef typeDef,
java.lang.String xpath,
SchemaNodeMap schemaNodeMap)
Constructor for the SchemaNode object used for Schema elements that refer
to Global Elements, such as attributes and elements
|
SchemaNode(org.dom4j.Element e,
GlobalDef typeDef,
java.lang.String xpath,
SchemaNodeMap schemaNodeMap,
GlobalDef validatingType)
SchemaNode constructor used for schema elements defined as SimpleType or
ComplexType types.
|
Modifier and Type | Method and Description |
---|---|
void |
assignAttributes(org.dom4j.Element donor)
NOT USED!! Only override existing attributes if the particular attribute is explicitly defined in the
donor element.
|
java.lang.String |
getAttr(java.lang.String key)
Gets the attr attribute of the SchemaNode object
|
java.util.List |
getAttributeNames()
gets names of the attributes of the schema element (NOT the instance element!)
|
Compositor |
getCompositor()
Returns the compositor associated with this SchemaNode's typeDef, or null if
the typeDef does not have a Compositor.
|
int |
getDocOrderIndex() |
java.lang.String |
getDocumentation() |
java.lang.String |
getHeadElementName() |
boolean |
getIsChoiceMember() |
int |
getMaxOccurs() |
int |
getMinOccurs() |
short |
getNodeType()
Gets the nodeType attribute of the SchemaNode object (corresponding to the
type of XML node this schemaNode wraps).
|
SchemaNode |
getParent() |
int |
getParentCompositorMaxOccurs()
Get the "maxOccurs" value of this SchemaNode's parent compositor.
|
java.lang.Object |
getProp(java.lang.String key)
Gets the attr attribute of the SchemaNode object
|
org.dom4j.Element |
getSubstitutionElement() |
java.util.List |
getSubstitutionGroup() |
GlobalDef |
getTypeDef() |
GlobalDef |
getValidatingType()
Gets the validatingTypeName attribute of the SchemaNode object.
|
java.lang.String |
getXpath()
Gets the xpath for this SchemaNode in the context of the SchemaHelper.instanceDocument.
|
boolean |
hasChoiceCompositor() |
boolean |
hasCompositor() |
boolean |
hasSequenceCompositor() |
boolean |
hasSequenceCompositorEXPERIMENTAL()
EXPERIMENTAL
|
boolean |
hasSequenceCompositorSIMPLE() |
boolean |
isAbstract() |
boolean |
isAttribute()
Gets the attribute attribute of the SchemaNode object
|
boolean |
isCompositorMember() |
boolean |
isCompositorSingleton()
Returns true if this SchemaNode is the only child of a compositor
|
boolean |
isDerivedContentModel() |
boolean |
isDerivedModel() |
boolean |
isDerivedTextOnlyModel() |
boolean |
isElement()
Gets the element attribute of the SchemaNode object
|
boolean |
isHeadElement()
A "headElement" has a substitutionGroup of elements that may be substituted
for it.
|
boolean |
isNillable()
Gets the nillable attribute of the SchemaNode object
|
boolean |
isReadOnly()
Gets the readOnly attribute of the SchemaNode object
|
boolean |
isRecursive() |
boolean |
isRepeatingCompositorMember() |
boolean |
isRequired()
Gets the required attribute of the SchemaNode object
|
boolean |
isSubstitutionGroupMember() |
boolean |
isUnbounded()
Gets the unbounded attribute of the SchemaNode object
|
static void |
prtln(java.lang.String s)
Description of the Method
|
void |
setDocOrderIndex(int i) |
void |
setDocumentation(java.lang.String doc) |
void |
setHeadElementName(java.lang.String name) |
void |
setIsAbstract(boolean b) |
void |
setReadOnly(boolean readOnly)
Sets the readOnly attribute of the SchemaNode object
|
void |
setSubstitutionElement(org.dom4j.Element e)
SubstitutionElement is the instance Element, complete with children,
for this schemaNode.
|
void |
setSubstitutionGroup(java.util.List sg)
SubstitutionGroup is a list of GlobalElements
|
java.lang.String |
toString()
Produces string representation for debugging purposes.
|
public SchemaNode(org.dom4j.Element e, GlobalDef typeDef, java.lang.String xpath, SchemaNodeMap schemaNodeMap)
typeName
- data type of the referred-to elemente
- schema element that refers to a global elementxpath
- Description of the ParametertypeDef
- Description of the Parameterpublic SchemaNode(org.dom4j.Element e, GlobalDef typeDef, java.lang.String xpath, SchemaNodeMap schemaNodeMap, GlobalDef validatingType)
e
- Description of the ParametertypeDef
- Description of the Parameterxpath
- Description of the Parameterpublic void assignAttributes(org.dom4j.Element donor)
public java.lang.String getDocumentation()
public void setDocumentation(java.lang.String doc)
public int getMaxOccurs()
public int getMinOccurs()
public boolean isUnbounded()
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly
- The new readOnly valuepublic int getDocOrderIndex()
public void setDocOrderIndex(int i)
public boolean isNillable()
public boolean isAbstract()
public void setIsAbstract(boolean b)
public java.util.List getSubstitutionGroup()
public boolean isHeadElement()
public org.dom4j.Element getSubstitutionElement()
public void setSubstitutionElement(org.dom4j.Element e)
public java.lang.String getHeadElementName()
public void setHeadElementName(java.lang.String name)
public void setSubstitutionGroup(java.util.List sg)
public boolean isSubstitutionGroupMember()
public boolean isRepeatingCompositorMember()
public int getParentCompositorMaxOccurs()
Return 1 if there is no parentCompositor - is this OK?
public boolean isCompositorSingleton()
public boolean isAttribute()
public boolean isElement()
public boolean isRequired()
public java.util.List getAttributeNames()
public java.lang.String getAttr(java.lang.String key)
key
- Description of the Parameterpublic java.lang.Object getProp(java.lang.String key)
key
- Description of the Parameterpublic java.lang.String getXpath()
public GlobalDef getTypeDef()
public boolean isDerivedModel()
public boolean isDerivedTextOnlyModel()
public boolean isDerivedContentModel()
public GlobalDef getValidatingType()
public boolean hasCompositor()
public boolean isCompositorMember()
public boolean hasChoiceCompositor()
public boolean hasSequenceCompositor()
public boolean hasSequenceCompositorSIMPLE()
public boolean hasSequenceCompositorEXPERIMENTAL()
public Compositor getCompositor()
public SchemaNode getParent()
public boolean isRecursive()
public boolean getIsChoiceMember()
public short getNodeType()
public java.lang.String toString()
toString
in class java.lang.Object
public static void prtln(java.lang.String s)
s
- Description of the Parameter