|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.schema.SchemaNode
public class SchemaNode
SchemaNode wraps a node in the Schema's instance document, and stores
information about it such as whether the node is an attribute or element, if
is required, and its xpath. SchemaNodes are stored in a SchemaNodeMap
that is keyed by XPaths.
$Id $
Constructor Summary | |
---|---|
SchemaNode(Element e,
GlobalDef typeDef,
String xpath,
SchemaNodeMap schemaNodeMap)
Constructor for the SchemaNode object used for Schema elements that refer to Global Elements, such as attributes and elements |
|
SchemaNode(Element e,
GlobalDef typeDef,
String xpath,
SchemaNodeMap schemaNodeMap,
GlobalDef validatingType)
SchemaNode constructor used for schema elements defined as SimpleType or ComplexType types. |
Method Summary | |
---|---|
void |
assignAttributes(Element donor)
NOT USED!! Only override existing attributes if the particular attribute is explicitly defined in the donor element. |
String |
getAttr(String key)
Gets the attr attribute of the SchemaNode object |
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()
|
String |
getDocumentation()
|
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. |
Object |
getProp(String key)
Gets the attr attribute of the SchemaNode object |
Element |
getSubstitutionElement()
|
List |
getSubstitutionGroup()
|
GlobalDef |
getTypeDef()
|
GlobalDef |
getValidatingType()
Gets the validatingTypeName attribute of the SchemaNode object. |
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(String s)
Description of the Method |
void |
setDocOrderIndex(int i)
|
void |
setDocumentation(String doc)
|
void |
setHeadElementName(String name)
|
void |
setIsAbstract(boolean b)
|
void |
setReadOnly(boolean readOnly)
Sets the readOnly attribute of the SchemaNode object |
void |
setSubstitutionElement(Element e)
SubstitutionElement is the instance Element, complete with children, for this schemaNode. |
void |
setSubstitutionGroup(List sg)
SubstitutionGroup is a list of GlobalElements |
String |
toString()
Produces string representation for debugging purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SchemaNode(Element e, GlobalDef typeDef, 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(Element e, GlobalDef typeDef, String xpath, SchemaNodeMap schemaNodeMap, GlobalDef validatingType)
e
- Description of the ParametertypeDef
- Description of the Parameterxpath
- Description of the ParameterMethod Detail |
---|
public void assignAttributes(Element donor)
public String getDocumentation()
public void setDocumentation(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 List getSubstitutionGroup()
public boolean isHeadElement()
public Element getSubstitutionElement()
public void setSubstitutionElement(Element e)
public String getHeadElementName()
public void setHeadElementName(String name)
public void setSubstitutionGroup(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 List getAttributeNames()
public String getAttr(String key)
key
- Description of the Parameter
public Object getProp(String key)
key
- Description of the Parameter
public 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 String toString()
toString
in class Object
public static void prtln(String s)
s
- Description of the Parameter
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |