Note
State of the content model is stored in the validator
| Modifier and Type | Field and Description |
|---|---|
| public static final short | |
| public static final short |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this content model contains other or list wildcardthe substitution group handler subGroupHandler)check whether this content violates UPA constraint. |
| public boolean | Returns: true if the last state was a valid final stateCurrent state of the content model state)The method indicates the end of list of children |
| public String | Returns: the name of the element declaration or wildcardidentifier for the element declaration or wildcard termId)Returns the name of the term (element or wildcard) for the given identifier. |
| public boolean | Returns: a boolean that says whether this content has been compacted for UPAChecks if this content model has had its min/maxOccurs values reduced for purposes of speeding up UPA. |
| public int[] | Returns: an array containing information about the current repeating termthe current state state)Returns an array containing information about the current repeating term
or |
| public Object | Returns: element decl or wildcard decl that corresponds to the element from the Schema grammarCurrent state state, SubstitutionGroupHandler subGroupHandler)The method corresponds to one transaction in the content model. |
| public int[] | Returns: Start state of the content modelThis methods to be called on entering a first element whose type has this content model. |
| public Vector | Returns: a Vector whose entries are instances of either XSWildcardDecl or XSElementDecl.the current state state)Check which elements are valid to appear at this point. |
| FIRST_ERROR | back to summary |
|---|---|
| public static final short FIRST_ERROR | |
| SUBSEQUENT_ERROR | back to summary |
|---|---|
| public static final short SUBSEQUENT_ERROR | |
| checkUniqueParticleAttribution | back to summary |
|---|---|
| public boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler) throws XMLSchemaException check whether this content violates UPA constraint.
| |
| endContentModel | back to summary |
|---|---|
| public boolean endContentModel(int[] state) The method indicates the end of list of children
| |
| getTermName | back to summary |
|---|---|
| public String getTermName(int termId) Returns the name of the term (element or wildcard) for the given identifier.
| |
| isCompactedForUPA | back to summary |
|---|---|
| public boolean isCompactedForUPA() Checks if this content model has had its min/maxOccurs values reduced for purposes of speeding up UPA. If so, this content model should not be used for any purpose other than checking unique particle attribution
| |
| occurenceInfo | back to summary |
|---|---|
| public int[] occurenceInfo(int[] state) Returns an array containing information about the current repeating term
or If an array is returned it will have a length == 4 and will contain:
| |
| oneTransition | back to summary |
|---|---|
| public Object oneTransition(QName elementName, int[] state, SubstitutionGroupHandler subGroupHandler) The method corresponds to one transaction in the content model.
| |
| startContentModel | back to summary |
|---|---|
| public int[] startContentModel() This methods to be called on entering a first element whose type has this content model. It will return the initial state of the content model
| |
| whatCanGoHere | back to summary |
|---|---|
| public Vector Check which elements are valid to appear at this point. This method also works if the state is in error, in which case it returns what should have been seen.
| |