com.jxml.quick.model.qjml
Class QMField
java.lang.Object
|
+--com.jxml.quick.model.qjml.QMCloneable
|
+--com.jxml.quick.model.qjml.QMAccess
|
+--com.jxml.quick.model.qjml.QMField
- All Implemented Interfaces:
- Cloneable
- public class QMField
- extends QMAccess
Models the field element in QJML.
This element identifies a public Java variable as the accessor.
DTD:
<!ELEMENT field EMPTY>
<!ATTLIST field
name CDATA #IMPLIED
kind (array|list|map) #IMPLIED
size CDATA "-1"
initializer CDATA #IMPLIED
coin CDATA #IMPLIED
key CDATA #IMPLIED
ID id #IMPLIED
>
Field Summary |
String |
initializer
Models the initializer attribute on the field element. |
initializer
public String initializer
- Models the initializer attribute on the field element.
This attribute provides the text used to generate initialization code for the variable--
useful when generating Java code from a QJML file.
The initializer attribute is optional.
QMField
public QMField()
buildMaps
public void buildMaps(Map coinMap,
Map contentMap,
QMCoin myCoin)
throws SAXException
- Builds the maps.
This method is called during initialization of the data model.
- Overrides:
buildMaps
in class QMAccess
addAccessor
public void addAccessor(Map coinMap,
Map contentMap,
QMCoin myCoin)
throws SAXException
- Add accessor.
- Overrides:
addAccessor
in class QMAccess
munge
public void munge()
- Munge info from two accessors which should be identical.
- Overrides:
munge
in class QMAccess
init
public void init(Map coinMap,
Map contentMap,
QMCoin myCoin,
QMContentModel contentModel)
throws SAXException
- Resolve references, inheritance.
This method is called during initialization of the data model.
- Overrides:
init
in class QMAccess
equals
public boolean equals(Object o)
- Returns true when the names are equal.
- Overrides:
equals
in class Object