SgmlElement

The SgmlElement class stores data about an SGML element derived from the DTD. More...

Public Methods

SgmlElement( QString name, bool stag, bool etag, QStrIList& incl, QStrIList& excl, SgmlNode* root );
QList<Attribute>&attrs( );
booletagRequired( );
QStrIList&exclude( );
boolexcluded( QString name );
QStrIList&include( );
boolincluded( QString name );
boolisEmpty( );
ContentModel&model( );
QStringname( );
boolstagRequired( );
~SgmlElement( );

Private Data Members

QList<Attribute>_attrs;
bool_etagRequired;
QStrIList_exclude;
QStrIList_include;
bool_isEmpty;
ContentModel_model;
QString_name;
bool_stagRequired;

Detailed Documentation

The SgmlElement class stores data about an SGML element derived from the DTD.

The SgmlElement is created by the DtdParser, and it is used by the SgmlParser.

Public Methods Documentation

SgmlElement ( QString name, bool stag, bool etag, QStrIList& incl, QStrIList& excl, SgmlNode* root );

Construct a new SgmlElement. Create a content model DFA from the provided parse tree.

QList<Attribute>& attrs ( );

Return the list of attributes that this element can have.

bool etagRequired ( );

Returns TRUE if the end tag is required for this element.

QStrIList& exclude ( );

Returns the list of excluded elements.

bool excluded ( QString name );

Returns TRUE if the given element is excluded from the content model.

QStrIList& include ( );

Returns the list of included elements.

bool included ( QString name );

Returns TRUE if the given element is included in the content model.

bool isEmpty ( );

Returns the root node of the content model parse tree.

ContentModel& model ( );

Returns the elements content model.

QString name ( );

Returns the element name.

bool stagRequired ( );

Returns TRUE if the start tag is required fro this element.


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