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.
 
Fields inherited from class com.jxml.quick.model.qjml.QMAccess
coin, ia, key, keyAccess, kind, mCoin, name, size
 
Constructor Summary
QMField()
           
 
Method Summary
 void addAccessor(Map coinMap, Map contentMap, QMCoin myCoin)
          Add accessor.
 void buildMaps(Map coinMap, Map contentMap, QMCoin myCoin)
          Builds the maps.
 boolean equals(Object o)
          Returns true when the names are equal.
 void init(Map coinMap, Map contentMap, QMCoin myCoin, QMContentModel contentModel)
          Resolve references, inheritance.
 void munge()
          Munge info from two accessors which should be identical.
 
Methods inherited from class com.jxml.quick.model.qjml.QMAccess
clone, getClassName
 
Methods inherited from class com.jxml.quick.model.qjml.QMCloneable
clone, clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.
Constructor Detail

QMField

public QMField()
Method Detail

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