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 List | Returns: null if validation of bounds is
successful. Returns a list of strings with error info
if not. Even entries in list returned are error codes
(used to look up properties) and odd entries are parameters
to be passed when formatting error message. Each parameter
is associated with the error code that proceeds it in
the list.Used by constant space algorithm for a{n,m} for n > 1 and m <= unbounded. |
| 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 List | Returns: a list 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 | |
| checkMinMaxBounds | back to summary |
|---|---|
| public List Used by constant space algorithm for a{n,m} for n > 1 and m <= unbounded. Called by a validator if validation of countent model succeeds after subsuming a{n,m} to a* (or a+) to check the n and m bounds.
| |
| 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 List 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. | |