The Attribute class stores the prototype for an SGML tag attribute. More...
Attribute | ( const QString name, ValueType valueType, Type type, QStrIList& enums, QString defaultValue ); | |
const QString | defaultValue | ( ); |
QStrIList& | enums | ( ); |
const QString | name | ( ); |
Type | type | ( ); |
ValueType | valueType | ( ); |
QString | _defaultValue; |
QStrIList | _enums; |
QString | _name; |
Type | _type; |
ValueType | _valueType; |
The Attribute class stores the prototype for an SGML tag attribute.
In SGML, all start tags may have one or more attributes associated with them. These attributes are used to modify the meaning of the element is small ways. This class is merely a container for an attribute "prototype" that can be used to validate tag attributes, and/or provide default values for tag attributes.Create a new Attribute. Name is the name of the attribute. ValueType is the data type of the value (Cdata, Number, Enum, Name, Names). Type is tells whether the value is Implied, Required, Fixed, or has a Default. Enums is the list of possible values, if the valueType was Enum. DefaultValue gives the fixed or default value for the attribute.
This is the default (string) value for the attribute if type is Default.
This is the list of allowed string values if the valueType is Enum.
The attribute name.
Is the attribute value Implied, Required, Fixed, or does it have a Default?
The data type of the attribute value.