|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.wrap.XMLBasicValue<Integer>
hmi.xml.wrap.XMLInteger
public class XMLInteger
XMLInteger is in essence a wrapper around int or Integer values, that turns them effectively into an XMLStructure object.
| Field Summary | |
|---|---|
static String |
CLASSNAME
|
private int |
val
|
static String |
WRAPPEDCLASSNAME
|
private static String |
XMLTAG
|
| Fields inherited from class hmi.xml.wrap.XMLBasicValue |
|---|
BUFFERSIZE |
| Constructor Summary | |
|---|---|
XMLInteger()
creates a new XMLInteger with value 0. |
|
XMLInteger(int value)
creates a new XMLInteger with specified value. |
|
XMLInteger(Integer value)
creates a new XMLInteger with specified value. |
|
XMLInteger(XMLInteger xmlValue)
creates a new XMLInteger with specified value. |
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributeString(StringBuilder buf)
returns a String that can be used as XML attribute value. |
void |
decodeAttribute(String attrName,
String valCode,
XMLTokenizer tokenizer)
decodes the value from an attribute value String |
boolean |
equals(Object xmlInteger)
equality, based on String equality for the value fields; |
String |
getXMLTag()
The XML Stag for XML encoding -- use this method to find out the run-time xml tag of an object |
int |
hashCode()
calculates the hash code consistent with "equals". i.e "equal" objects get the same hash code. |
Integer |
integerValue()
returns the value as an Integer |
int |
intValue()
returns the value as an int. |
String |
toString()
returns the normal int value as String |
Integer |
unwrap()
returns the value as an Integer Object |
static String |
xmlTag()
The XML Stag for XML encoding -- use this static method when you want to see if a given String equals the xml tag for this class |
| Methods inherited from class hmi.xml.wrap.XMLBasicValue |
|---|
appendAttribute, appendAttribute, appendSpace, appendXML, appendXML, appendXML, decodeAttribute, getAttributeName, getAttributeValue, readXML, readXML, readXML, toAttributeString, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface hmi.xml.XMLStructure |
|---|
appendXML, appendXML, appendXML, readXML, readXML, readXML, toXMLString, toXMLString, toXMLString, writeXML, writeXML, writeXML |
| Field Detail |
|---|
private int val
private static final String XMLTAG
public static final String CLASSNAME
public static final String WRAPPEDCLASSNAME
| Constructor Detail |
|---|
public XMLInteger()
public XMLInteger(int value)
public XMLInteger(Integer value)
public XMLInteger(XMLInteger xmlValue)
| Method Detail |
|---|
public int intValue()
public Integer integerValue()
public String toString()
toString in class Objectpublic boolean equals(Object xmlInteger)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic StringBuilder appendAttributeString(StringBuilder buf)
appendAttributeString in class XMLBasicValue<Integer>
public void decodeAttribute(String attrName,
String valCode,
XMLTokenizer tokenizer)
decodeAttribute in class XMLBasicValue<Integer>public Integer unwrap()
unwrap in interface XMLWrapper<Integer>unwrap in class XMLBasicValue<Integer>public static String xmlTag()
public String getXMLTag()
getXMLTag in interface XMLStructuregetXMLTag in class XMLBasicValue<Integer>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||