|
||||||||||
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.SchemaGrammarComplexTypeImpl
An implementation of GrammarComplexType for Schemas.
Nested Class Summary |
Nested classes inherited from class org.merlotxml.util.xml.GrammarComplexType |
GrammarComplexType.ListComparator |
Field Summary | |
static java.lang.String |
INSERT_PLACE_HOLDER
|
Fields inherited from class org.merlotxml.util.xml.GrammarComplexType |
_attributes, _namedAttributes, _simpleContent, debugLevel, totalDurationIsEachAttributeValid, totalDurationIsLocationValid, totalDurationIsSimpleContentValid |
Constructor Summary | |
SchemaGrammarComplexTypeImpl(SchemaGrammarDocumentImpl grammarDocument,
SchemaGrammarComplexTypeImpl parentComplexType,
org.apache.xerces.xs.XSElementDeclaration elementDeclaration,
org.apache.xerces.xs.XSParticle particle)
|
|
SchemaGrammarComplexTypeImpl(SchemaGrammarDocumentImpl grammarDocument,
org.apache.xerces.xs.XSElementDeclaration elementDeclaration)
|
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 |
protected org.w3c.dom.Element[] |
getElementPath(org.w3c.dom.Element el)
|
boolean |
getIsEachAttributeValid(org.w3c.dom.Element el)
Checks the validity of the values of each of the attributes. |
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)
|
protected SchemaGrammarDocumentImpl |
getSchemaGrammarDocumentImpl()
|
protected org.w3c.dom.Node |
getTextNode(org.w3c.dom.Element el)
|
org.apache.xerces.xs.XSElementDeclaration |
getXSElementDeclaration()
|
boolean |
isEmptyType()
|
boolean |
isMixedType()
|
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[] candidateNodeNames)
Validates the candidate node names for their position in the structure. |
protected boolean |
validate(org.apache.xerces.xs.XSParticle particle,
java.util.Vector candidateNodeNames)
|
protected boolean |
validate(org.apache.xerces.xs.XSParticle particle,
java.util.Vector candidateNodeNames,
int level)
|
protected java.lang.String[] |
whatCanGoHere(java.lang.String[] currentChildElements,
int insertPosition)
The possible elements that could be inserted at this position, given the current children. |
protected boolean |
whatCanGoHere(org.apache.xerces.xs.XSParticle particle,
java.util.Vector candidateNodeNames,
java.util.Vector result,
int level)
|
Methods inherited from class org.merlotxml.util.xml.GrammarComplexType |
debug, getAttribute, getAttributes, getChildNodeNames, getChildNodeNamesWithoutText, getFirstMissingChildName, getIndexWithoutTextNodes, getInsertableElements, getInsertableElements, getInsertPosition, getIsComplete, getIsLocationValid, getNames, getPositionAmongPeers, getSimpleContent, toString, toString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String INSERT_PLACE_HOLDER
Constructor Detail |
public SchemaGrammarComplexTypeImpl(SchemaGrammarDocumentImpl grammarDocument, org.apache.xerces.xs.XSElementDeclaration elementDeclaration)
public SchemaGrammarComplexTypeImpl(SchemaGrammarDocumentImpl grammarDocument, SchemaGrammarComplexTypeImpl parentComplexType, org.apache.xerces.xs.XSElementDeclaration elementDeclaration, org.apache.xerces.xs.XSParticle particle)
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
protected org.w3c.dom.Element[] getElementPath(org.w3c.dom.Element el)
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.
protected org.w3c.dom.Node getTextNode(org.w3c.dom.Element el)
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 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 org.apache.xerces.xs.XSElementDeclaration getXSElementDeclaration()
public boolean isMixedType()
isMixedType
in class GrammarComplexType
protected int validate(java.lang.String[] candidateNodeNames)
GrammarComplexType
validate
in class GrammarComplexType
candidateNodeNames
- Description of Parameter
protected boolean validate(org.apache.xerces.xs.XSParticle particle, java.util.Vector candidateNodeNames)
protected boolean validate(org.apache.xerces.xs.XSParticle particle, java.util.Vector candidateNodeNames, int level)
protected java.lang.String[] whatCanGoHere(java.lang.String[] currentChildElements, int insertPosition)
GrammarComplexType
whatCanGoHere
in class GrammarComplexType
currentChildElements
- The current children node names.insertPosition
- The zero-based position where a new child is
to be inserted.
protected boolean whatCanGoHere(org.apache.xerces.xs.XSParticle particle, java.util.Vector candidateNodeNames, java.util.Vector result, int level)
protected SchemaGrammarDocumentImpl getSchemaGrammarDocumentImpl()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |