public class CountingState extends Object implements State
| Constructor and Description |
|---|
CountingState(AutomatonState as,
int startFrom) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Iterator<Edge> |
getEdges()
Get an iterator over all the transitions (edges) allowed from this state
|
Edge |
getTransition(int token,
UserComplexType type)
Find the edge representing the transition from this state to another state, that is
triggered by a given input token
|
AutomatonState |
getUnderlyingState() |
Edge[] |
getWildcardEdges()
Get an iterator over the wildcard transitions (edges) allowed from this state.
|
int |
hashCode() |
State |
incrementCounter() |
boolean |
isFinalState() |
CharSequence |
listAllowedElements() |
void |
testMinimumReached() |
public CountingState(AutomatonState as, int startFrom)
public State incrementCounter() throws ValidationException
ValidationExceptionpublic void testMinimumReached()
throws ValidationException
ValidationExceptionpublic Edge getTransition(int token, UserComplexType type)
StategetTransition in interface Statetoken - the input token, specifically the fingerprint of an element nametype - the complex type whose content model we are validating againstpublic boolean isFinalState()
isFinalState in interface Statepublic AutomatonState getUnderlyingState()
public CharSequence listAllowedElements()
listAllowedElements in interface Statepublic Edge[] getWildcardEdges()
getWildcardEdges in interface StateEdge objects.public Iterator<Edge> getEdges()
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.