public class XSAllCM extends Object implements XSCMValidator
FIRST_ERROR, SUBSEQUENT_ERROR| Constructor and Description |
|---|
XSAllCM(boolean hasOptionalContent,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(XSElementDecl element,
boolean isOptional) |
ArrayList |
checkMinMaxBounds()
Used by constant space algorithm for a{n,m} for n > 1 and
m <= unbounded.
|
boolean |
checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler)
check whether this content violates UPA constraint.
|
boolean |
endContentModel(int[] currentState)
The method indicates the end of list of children
|
Object |
oneTransition(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.
|
Vector |
whatCanGoHere(int[] state)
Check which elements are valid to appear at this point.
|
public void addElement(XSElementDecl element, boolean isOptional)
public int[] startContentModel()
startContentModel in interface XSCMValidatorpublic Object oneTransition(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 modelpublic boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler) throws XMLSchemaException
checkUniqueParticleAttribution in interface XSCMValidatorsubGroupHandler - the substitution group handlerXMLSchemaExceptionpublic Vector whatCanGoHere(int[] state)
whatCanGoHere in interface XSCMValidatorstate - the current statepublic ArrayList checkMinMaxBounds()
XSCMValidatornull 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 preceeds it in
the list.checkMinMaxBounds in interface XSCMValidatorCopyright © 2018–2021 mhoffrogge. All rights reserved.