|
|||||||||
| 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.XSSimpleCM
XSSimpleCM is a derivative of the abstract content model base class that handles a small set of simple content models that are just way overkill to give the DFA treatment.
This class handles the following scenarios:
These all involve a unary operation with one element type, or a binary operation with two elements. These are very simple and can be checked in a simple way without a DFA and without the overhead of setting up a DFA for such a simple check. This model validated on the way in.
| Fields inherited from interface org.apache.xerces.impl.xs.models.XSCMValidator |
FIRST_ERROR, SUBSEQUENT_ERROR |
| Constructor Summary | |
XSSimpleCM(short operator,
XSElementDecl elem)
Constructs a simple content model. |
|
XSSimpleCM(short operator,
XSElementDecl elem1,
XSElementDecl elem2)
Constructs a simple content model. |
|
| Method Summary | |
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.Object |
oneTransition(org.apache.xerces.xni.QName elementName,
int[] currentState,
SubstitutionGroupHandler subGroupHandler)
The method corresponds to one transaction in the content model. |
int[] |
startContentModel()
This methods to be called on entering a first element whose type has this content model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XSSimpleCM(short operator,
XSElementDecl elem)
public XSSimpleCM(short operator,
XSElementDecl elem1,
XSElementDecl elem2)
| Method Detail |
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 - state - Current statepublic boolean endContentModel(int[] currentState)
endContentModel in interface XSCMValidatorstate - Current state of the content model
public boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler)
throws XMLSchemaException
checkUniqueParticleAttribution in interface XSCMValidatorerrors - to hold the UPA errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||