com.jxml.quick.model.qjml
Class QMAttributes
java.lang.Object
|
+--com.jxml.quick.model.qjml.QMCloneable
|
+--com.jxml.quick.model.qjml.QMAttributes
- All Implemented Interfaces:
- Cloneable
- public class QMAttributes
- extends QMCloneable
Models the attributes element in QJML.
The attributes element is used to describe the attributes of an element.
DTD:
<!ELEMENT attributes (item)*>
<!ATTLIST attributes
inherited CDATA #IMPLIED
ID id #IMPLIED
>
Field Summary |
TreeMap |
atts
A table of all attribute items, including inherited attributes,
keyed and ordered by attribute name. |
QMCoin |
extendsCoin
The QMAbstract, QMText, or QMBean object named by the extends element
of the abstract or bean element which contains this attributes element. |
boolean |
inherited
Models the inherited attribute on the attributes element. |
ArrayList |
itemList
A container for the QMItem objects, which model item elements. |
Method Summary |
void |
buildMaps(Map coinMap,
Map contentMap,
QMCoin coin)
Builds the maps. |
Object |
clone()
Returns a deep copy of this object, but in an uninitialized form. |
Map |
getAtts()
Returns a table of QMItem objects, keyed by attribute name. |
void |
init(Map coinMap,
Map contentMap,
QMCoin myCoin,
QMCoin extendsCoin)
Resolve references, inheritance. |
inherited
public boolean inherited
- Models the inherited attribute on the attributes element.
The inherited attribute defaults to true.
When set to false, inheritance of attributes is inhibited.
itemList
public ArrayList itemList
- A container for the QMItem objects, which model item elements.
The item elements are optional and repeating within the content of the attributes element.
Each item describes an attribute on the element being defined by
the abstract or bean element which contains the attributes element.
atts
public transient TreeMap atts
- A table of all attribute items, including inherited attributes,
keyed and ordered by attribute name.
This table is populated when the data model is initialized.
extendsCoin
public transient QMCoin extendsCoin
- The QMAbstract, QMText, or QMBean object named by the extends element
of the abstract or bean element which contains this attributes element.
This variable is set when the data model is initialized.
QMAttributes
public QMAttributes()
clone
public Object clone()
- Returns a deep copy of this object, but in an uninitialized form.
- Overrides:
clone
in class QMCloneable
buildMaps
public void buildMaps(Map coinMap,
Map contentMap,
QMCoin coin)
throws SAXException
- Builds the maps.
This method is called during initialization of the data model.
init
public void init(Map coinMap,
Map contentMap,
QMCoin myCoin,
QMCoin extendsCoin)
throws SAXException
- Resolve references, inheritance.
This method is called during initialization of the data model.
getAtts
public Map getAtts()
throws SAXException
- Returns a table of QMItem objects, keyed by attribute name.
Inherited attribute items are included.