|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A deterministic finite state automaton as described for 'Unique Particle Attribution'.
| Inner Class Summary | |
static interface |
XSDParticle.DFA.State
A state of a deterministic finite state automaton. |
static interface |
XSDParticle.DFA.Transition
A transition of a deterministic finite state automaton. |
| Method Summary | |
boolean |
accept(java.lang.String namespaceURI,
java.lang.String localName)
Attempt a state transition and return whether the resulting state is
accepting. |
XSDParticle.DFA |
cloneDFA()
Creates a clone of the automaton. |
XSDParticle.DFA.State |
getCurrentState()
Returns the current state of the automaton. |
XSDParticle.DFA.State |
getInitialState()
Returns the initial state of this automaton. |
java.util.Set |
getStates()
Returns the set of states in this automaton. |
void |
reset()
Resets the automaton to the initial state. |
| Method Detail |
public java.util.Set getStates()
public XSDParticle.DFA.State getInitialState()
reset to this state.reset()public void reset()
initial state.getInitialState()public XSDParticle.DFA.State getCurrentState()
accepted.getCurrentState()
public boolean accept(java.lang.String namespaceURI,
java.lang.String localName)
resulting state is
accepting.
An unrecognized input will result in a null state and will yield false.
return whether the resulting state is accepting.public XSDParticle.DFA cloneDFA()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||