|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jxml.quick.model.qjml.QMCloneable | +--com.jxml.quick.model.qjml.QMCoin | +--com.jxml.quick.model.qjml.QMText
Models a text element in QJML. A text element is used to describe an attribute or a simple element that has text content and no attributes.
DTD: <!ELEMENT text (rem*, extends?, implements*, (targetClass|targetEditor|targetFactory)?, field*, property*, (enum|range)*)> <!ATTLIST text label CDATA #IMPLIED tag CDATA #IMPLIED wild CDATA "False" type (idref|PCDATA|CDATA|int|short|long|byte| boolean|float|double|base64|url|char|BigDecimal) "PCDATA" inline CDATA "False" trim CDATA "True" generate CDATA "True" validInherited CDATA "True" ID id #IMPLIED >
Field Summary | |
QMExtends |
extendor
Models an extends element, which is optional. |
QMCoin |
extendsCoin
The QMAbstract or QMText object named by the extends element. |
ArrayList |
fieldList
A container for QMField objects, which model field elements. |
ArrayList |
implementsList
A container for QMImplements objects, which model implements elements. |
boolean |
inline
Models the inline attribute on the text element. |
ArrayList |
propertyList
A container for QMProperty objects, which model property elements. |
String |
tag
Models the tag attribute on the text element. |
QMTarget |
target
Models target, which is an interface element. |
boolean |
trim
Models the trim attribute on the text element. |
String |
type
Models the type attribute on the text coin. |
boolean |
validInherited
Models the validInherited attribute on the text element. |
ArrayList |
validList
A container for QMEnum and QMRange objects, which model enum and range elements. |
ArrayList |
valids
A container for QMEnum and QMRange objects for this element, including enum and range elements defined on abstract and text coins which this text coin extends. |
boolean |
wild
Models the wild attribute on the text coin. |
Fields inherited from class com.jxml.quick.model.qjml.QMCoin |
accessors, extensions, generate, implementations, label, remList |
Constructor Summary | |
QMText()
|
Method Summary | |
void |
buildMaps(Map coinMap,
Map contentMap)
Builds the maps. |
Object |
clone()
Returns a deep copy of this object, but in an uninitialized form. |
QMAccess |
getAccessor(Map coinMap,
String name)
Returns the object which models the named field or property element. |
Map |
getAtts()
Returns a table of objects which model attribute item elements. |
String |
getClassName()
Returns the fully qualified name of the class described by this coin. |
String |
getLabel()
Returns the unique (within the scope of the QJML document) name of the coin, as specified by the coin's label. |
String |
getTag()
Returns the XML tag name assigned to the text element. |
ArrayList |
getValidList()
Returns a list of objects which model valid elements. |
void |
init(Map coinMap,
Map contentMap)
Resolve references, inheritance. |
Methods inherited from class com.jxml.quick.model.qjml.QMCloneable |
clone, clone |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public String tag
Models the tag attribute on the text element. The tag attribute holds the XML tag name for the element or attribute being defined by the text element.
When the label attribute is not present, the tag attribute is used to name the text coin.
public boolean wild
Models the wild attribute on the text coin. The wild attribute defaults to false. When the wild attribute is true, the text element can be used to represent an element or attribute with any tag name.
When the wild attribute is false, the tag attribute is required, but when the wild attribute is true, the tag attribute must not be present.
When the wild attribute is false, the label attribute is optional, but when the wild attribute is true, the label attribute is required.
public String type
Models the type attribute on the text coin. The type attribute defaults to a value of PCDATA.
The following values are allowed:
public boolean inline
public boolean trim
public boolean validInherited
public QMExtends extendor
public ArrayList implementsList
public QMTarget target
public ArrayList fieldList
public ArrayList propertyList
public ArrayList validList
public transient QMCoin extendsCoin
public transient ArrayList valids
Constructor Detail |
public QMText()
Method Detail |
public Object clone()
QMCoin
clone
in class QMCoin
public String getLabel()
getLabel
in class QMCoin
public String getTag()
public void buildMaps(Map coinMap, Map contentMap) throws SAXException
QMCoin
buildMaps
in class QMCoin
public QMAccess getAccessor(Map coinMap, String name) throws SAXException
QMCoin
Returns the object which models the named field or property element. This can be a field or property found within the content of the coin element being modeled, or one found within the content of a coin which this coin extends.
The keys include both the field or property name and a prefix, as follows:
getAccessor
in class QMCoin
public void init(Map coinMap, Map contentMap) throws SAXException
QMCoin
init
in class QMCoin
public Map getAtts() throws SAXException
QMElement
getAtts
in interface QMElement
public ArrayList getValidList() throws SAXException
QMData
getValidList
in interface QMData
public String getClassName() throws SAXException
QMCoin
getClassName
in class QMCoin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |