|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.merlotxml.util.xml.GrammarComplexType
org.merlotxml.util.xml.xerces.DTDGrammarComplexTypeImpl
Nested Class Summary |
Nested classes inherited from class org.merlotxml.util.xml.GrammarComplexType |
GrammarComplexType.ListComparator |
Field Summary | |
protected GrammarComplexType |
_parentComplexType
The parent element within which this is defined. |
Fields inherited from class org.merlotxml.util.xml.GrammarComplexType |
_attributes, _namedAttributes, _simpleContent, debugLevel, totalDurationIsEachAttributeValid, totalDurationIsLocationValid, totalDurationIsSimpleContentValid |
Constructor Summary | |
DTDGrammarComplexTypeImpl(DTDGrammarDocumentImpl grammarDocument,
int elementDeclIndex,
org.apache.xerces.impl.dtd.XMLElementDecl elementDecl)
|
Method Summary | |
GrammarComplexType |
getChild(java.lang.String name)
Gets a locally defined element by name. |
GrammarComplexType[] |
getChildren()
Gets all the children defined within the scope of this parent. |
java.lang.String |
getDocumentation()
Gets the value of the |
boolean |
getIsEachAttributeValid(org.w3c.dom.Element el)
Checks the validity of the values of each of the attributes. |
boolean |
getIsLocationValid(org.w3c.dom.Element el)
Checks whether this element is in an allowed place in the structure of the document. |
boolean |
getIsNillable()
Means whether an attribute xsi:nil='true' may be inserted into the XML file. |
boolean |
getIsSimpleContentAllowed()
Determines if the element may contain simple content (#PCDATA). |
boolean |
getIsSimpleContentValid(org.w3c.dom.Element el)
Validates the value of the simple content of this element. |
int |
getMaxOccurs()
Gets the maximum number of instances of this type of element that are allowed. |
int |
getMinOccurs()
Gets the valid minimum number of instances of this type of element. |
java.lang.String |
getName()
Gets the name of this complex type. |
GrammarComplexType |
getParentComplexType(org.w3c.dom.Element el)
|
boolean |
isElementValid(org.w3c.dom.Element el)
|
boolean |
isEmptyType()
|
boolean |
isMixedType()
|
boolean |
isValid(org.w3c.dom.Element el)
|
void |
resetValidation(org.w3c.dom.Element el)
|
int |
validate(org.w3c.dom.Element el)
Validates the element in terms of its position in the structure of the document. |
protected int |
validate(java.lang.String[] children)
Validates the candidate node names for their position in the structure. |
Methods inherited from class org.merlotxml.util.xml.GrammarComplexType |
debug, getAttribute, getAttributes, getChildNodeNames, getChildNodeNamesWithoutText, getFirstMissingChildName, getIndexWithoutTextNodes, getInsertableElements, getInsertableElements, getInsertPosition, getIsComplete, getNames, getPositionAmongPeers, getSimpleContent, toString, toString, toString, whatCanGoHere |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected GrammarComplexType _parentComplexType
Constructor Detail |
public DTDGrammarComplexTypeImpl(DTDGrammarDocumentImpl grammarDocument, int elementDeclIndex, org.apache.xerces.impl.dtd.XMLElementDecl elementDecl)
Method Detail |
public GrammarComplexType getChild(java.lang.String name)
GrammarComplexType
getChild
in class GrammarComplexType
name
- The name of the child element.
public GrammarComplexType[] getChildren()
GrammarComplexType
getChildren
in class GrammarComplexType
public GrammarComplexType getParentComplexType(org.w3c.dom.Element el)
getParentComplexType
in class GrammarComplexType
public java.lang.String getDocumentation()
GrammarComplexType
getDocumentation
in class GrammarComplexType
public boolean getIsEachAttributeValid(org.w3c.dom.Element el)
GrammarComplexType
getIsEachAttributeValid
in class GrammarComplexType
el
- The element for which all attributes must be checked.
public boolean getIsNillable()
GrammarComplexType
For DTDs always returns false.
For Schemas, returns whether nillable has been set to true for this element.
getIsNillable
in class GrammarComplexType
public boolean getIsSimpleContentAllowed()
GrammarComplexType
getIsSimpleContentAllowed
in class GrammarComplexType
public boolean getIsSimpleContentValid(org.w3c.dom.Element el)
GrammarComplexType
getIsSimpleContentValid
in class GrammarComplexType
el
- The element to be validated.
public int getMaxOccurs()
GrammarComplexType
getMaxOccurs
in class GrammarComplexType
public int getMinOccurs()
GrammarComplexType
getMinOccurs
in class GrammarComplexType
public java.lang.String getName()
GrammarComplexType
getName
in class GrammarComplexType
public boolean getIsLocationValid(org.w3c.dom.Element el)
GrammarComplexType
getIsLocationValid
in class GrammarComplexType
el
- The element to be validated.
public boolean isValid(org.w3c.dom.Element el)
public boolean isElementValid(org.w3c.dom.Element el)
public int validate(org.w3c.dom.Element el)
GrammarComplexType
validate
in class GrammarComplexType
el
- The element to be validated for structure.
public void resetValidation(org.w3c.dom.Element el)
resetValidation
in class GrammarComplexType
public boolean isEmptyType()
isEmptyType
in class GrammarComplexType
public boolean isMixedType()
isMixedType
in class GrammarComplexType
protected int validate(java.lang.String[] children)
GrammarComplexType
validate
in class GrammarComplexType
children
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |