| java.lang.Object org.apache.xerces.impl.xs.models.XSEmptyCM
XSEmptyCM | public class XSEmptyCM implements XSCMValidator(Code) | | XSEmptyCM is a derivative of the abstract content model base class that
handles a content model with no children (elements).
This model validated on the way in.
author: Elena Litani, IBM author: Lisa Martin, IBM version: $Id: XSEmptyCM.java 573322 2007-09-06 16:48:47Z peterjm $ |
checkUniqueParticleAttribution | public boolean checkUniqueParticleAttribution(SubstitutionGroupHandler subGroupHandler) throws XMLSchemaException(Code) | | check whether this content violates UPA constraint.
Parameters: subGroupHandler - the substitution group handler true if this content model contains other or list wildcard |
endContentModel | public boolean endContentModel(int[] currentState)(Code) | | The method indicates the end of list of children
Parameters: currentState - Current state of the content model true if the last state was a valid final state |
isCompactedForUPA | public boolean isCompactedForUPA()(Code) | | |
oneTransition | public Object oneTransition(QName elementName, int[] currentState, SubstitutionGroupHandler subGroupHandler)(Code) | | The method corresponds to one transaction in the content model.
Parameters: elementName - the qualified name of the element Parameters: currentState - Current state Parameters: subGroupHandler - the substitution group handler element index corresponding to the element from the Schema grammar |
startContentModel | public int[] startContentModel()(Code) | | 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
Start state of the content model |
whatCanGoHere | public Vector whatCanGoHere(int[] state)(Code) | | 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.
Parameters: state - the current state a Vector whose entries are instances ofeither XSWildcardDecl or XSElementDecl. |
|
|