The ContentModel class provides a container for ContentModelStates. More...
ContentModel | ( ); | |
void | addState | ( ContentModelState* state ); |
ContentModelState* | find | ( ContentModelState* state ); |
ContentModelState* | start | ( ); |
~ContentModel | ( ); |
QList<ContentModelState> | _states; |
The ContentModel class provides a container for ContentModelStates.
The entire list of states taken together form a discrete finite automata that can be used to validate the content model of an SGML element. A DFA was used because a content model is really just a glorified regular expression, with elements instead of letters for its alphabet.Add the given state to the content model.
Search for a state in the content model that is exactly the same as the given state. Return the dentical state, if found.
Return the starting state for the DFA.