| java.lang.Object org.apache.xerces.impl.xs.models.XSDFACM
XSDFACM | public class XSDFACM implements XSCMValidator(Code) | | DFAContentModel is the implementation of XSCMValidator that does
all of the non-trivial element content validation. This class does
the conversion from the regular expression to the DFA that
it then uses in its validation algorithm.
author: Neil Graham, IBM version: $Id: XSDFACM.java 573322 2007-09-06 16:48:47Z peterjm $ |
Inner Class :final static class Occurence | |
Constructor Summary | |
public | XSDFACM(CMNode syntaxTree, int leafCount) Constructs a DFA content model. |
XSDFACM | public XSDFACM(CMNode syntaxTree, int leafCount)(Code) | | Constructs a DFA content model.
Parameters: syntaxTree - The syntax tree of the content model. Parameters: leafCount - The number of leaves. exception: RuntimeException - Thrown if DFA can't be built. |
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[] state)(Code) | | |
isCompactedForUPA | public boolean isCompactedForUPA()(Code) | | |
isFinalState | public boolean isFinalState(int state)(Code) | | check whether the given state is one of the final states
Parameters: state - the state to check whether it's a final state |
oneTransition | public Object oneTransition(QName curElem, int[] state, SubstitutionGroupHandler subGroupHandler)(Code) | | one transition only
Parameters: curElem - The current element's QName Parameters: state - stack to store the previous state Parameters: subGroupHandler - the substitution group handler null if transition is invalid; otherwise the Object corresponding to theXSElementDecl or XSWildcardDecl identified. Also, thestate array will be modified to include the new state; this so that the validator canstore it away. exception: RuntimeException - thrown on error |
startContentModel | public int[] startContentModel()(Code) | | |
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. |
|
|