|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.apache.xerces.impl.xs.models.XSAllCM
XSAllCM implements XSCMValidator and handles <all>.
| Fields inherited from interface org.apache.xerces.impl.xs.models.XSCMValidator |
|---|
FIRST_ERROR, SUBSEQUENT_ERROR |
| Constructor Summary | |
|---|---|
XSAllCM(boolean hasOptionalContent,
int size)
|
|
| Method Summary | |
|---|---|
void |
addElement(XSElementDecl element,
boolean isOptional)
|
boolean |
checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler)
check whether this content violates UPA constraint. |
boolean |
endContentModel(int[] currentState)
The method indicates the end of list of children |
java.lang.String |
getTermName(int termId)
Returns the name of the term (element or wildcard) for the given identifier. |
boolean |
isCompactedForUPA()
Checks if this content model has had its min/maxOccurs values reduced for purposes of speeding up UPA. |
int[] |
occurenceInfo(int[] state)
Returns an array containing information about the current repeating term or null if no occurrence counting was being performed at the
current state. |
java.lang.Object |
oneTransition(org.apache.xerces.xni.QName elementName,
int[] currentState,
SubstitutionGroupHandler subGroupHandler)
The method corresponds to one transition in the content model. |
int[] |
startContentModel()
This methods to be called on entering a first element whose type has this content model. |
java.util.Vector |
whatCanGoHere(int[] state)
Check which elements are valid to appear at this point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XSAllCM(boolean hasOptionalContent,
int size)
| Method Detail |
public void addElement(XSElementDecl element,
boolean isOptional)
public int[] startContentModel()
startContentModel in interface XSCMValidator
public java.lang.Object oneTransition(org.apache.xerces.xni.QName elementName,
int[] currentState,
SubstitutionGroupHandler subGroupHandler)
oneTransition in interface XSCMValidatorelementName - currentState - Current statepublic boolean endContentModel(int[] currentState)
endContentModel in interface XSCMValidatorcurrentState - Current state of the content model
public boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler)
throws XMLSchemaException
checkUniqueParticleAttribution in interface XSCMValidatorsubGroupHandler - the substitution group handlerpublic java.util.Vector whatCanGoHere(int[] state)
whatCanGoHere in interface XSCMValidatorstate - the current statepublic int[] occurenceInfo(int[] state)
XSCMValidatorReturns an array containing information about the current repeating term
or null if no occurrence counting was being performed at the
current state.
If an array is returned it will have a length == 4 and will contain:
occurenceInfo in interface XSCMValidatororg.apache.xerces.impl.xs.models.XSCMValidatorstate - the current statepublic java.lang.String getTermName(int termId)
XSCMValidatorgetTermName in interface XSCMValidatororg.apache.xerces.impl.xs.models.XSCMValidatortermId - identifier for the element declaration or wildcardpublic boolean isCompactedForUPA()
XSCMValidatorisCompactedForUPA in interface XSCMValidatororg.apache.xerces.impl.xs.models.XSCMValidator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||