ContentModel

The ContentModel class provides a container for ContentModelStates. More...

Public Methods

ContentModel( );
voidaddState( ContentModelState* state );
ContentModelState*find( ContentModelState* state );
ContentModelState*start( );
~ContentModel( );

Private Data Members

QList<ContentModelState>_states;

Detailed Documentation

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.

Public Methods Documentation

void addState ( ContentModelState* state );

Add the given state to the content model.

ContentModelState* find ( ContentModelState* state );

Search for a state in the content model that is exactly the same as the given state. Return the dentical state, if found.

ContentModelState* start ( );

Return the starting state for the DFA.


Return to Index.
Automatically generated on Aug 11 23:32