org.apache.xerces.impl.xs.models
public class XSEmptyCM extends java.lang.Object implements XSCMValidator
FIRST_ERROR, SUBSEQUENT_ERROR
Constructor and Description |
---|
XSEmptyCM() |
Modifier and Type | Method and Description |
---|---|
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.
|
java.util.Vector |
whatCanGoHere(int[] state)
Check which elements are valid to appear at this point.
|
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 XSCMValidator
elementName
- the qualified name of the elementcurrentState
- Current statesubGroupHandler
- the substitution group handlerpublic boolean endContentModel(int[] currentState)
endContentModel
in interface XSCMValidator
currentState
- Current state of the content modelpublic boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler) throws XMLSchemaException
checkUniqueParticleAttribution
in interface XSCMValidator
subGroupHandler
- the substitution group handlerXMLSchemaException
public java.util.Vector whatCanGoHere(int[] state)
whatCanGoHere
in interface XSCMValidator
state
- the current stateCopyright ? 1999-2005 Apache XML Project. All Rights Reserved.