Package totalcross.xml.rpc
Class XmlRpcValue
- java.lang.Object
-
- totalcross.xml.rpc.XmlRpcValue
-
public class XmlRpcValue extends java.lang.ObjectUsed to represent an XML-RPC value while a request is being parsed.
-
-
Field Summary
Fields Modifier and Type Field Description static intARRAYstatic intBASE64static intBOOLEANstatic intDATEstatic intDOUBLEstatic intFAULTstatic intI4static intINTEGERstatic intLONGstatic intMEMBERstatic intMETHODNAMEstatic intNAMEstatic intSTRINGstatic intSTRUCTstatic IntHashtabletag2codestatic intVALUE
-
Constructor Summary
Constructors Constructor Description XmlRpcValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacterData(java.lang.String cdata)Set the character data for the element and interprets it according to the element typevoidendElement(XmlRpcValue child)Notification that a new child element has been parsed.java.lang.ObjectgetValue()Gets the corresponding object of this XmlRpcValueinthashCode()voidsetType(int type)Set the type of this value.java.lang.StringtoString()
-
-
-
Field Detail
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
-
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
-
DATE
public static final int DATE
- See Also:
- Constant Field Values
-
BASE64
public static final int BASE64
- See Also:
- Constant Field Values
-
STRUCT
public static final int STRUCT
- See Also:
- Constant Field Values
-
ARRAY
public static final int ARRAY
- See Also:
- Constant Field Values
-
LONG
public static final int LONG
- See Also:
- Constant Field Values
-
VALUE
public static final int VALUE
- See Also:
- Constant Field Values
-
MEMBER
public static final int MEMBER
- See Also:
- Constant Field Values
-
FAULT
public static final int FAULT
- See Also:
- Constant Field Values
-
METHODNAME
public static final int METHODNAME
- See Also:
- Constant Field Values
-
NAME
public static final int NAME
- See Also:
- Constant Field Values
-
I4
public static final int I4
- See Also:
- Constant Field Values
-
tag2code
public static IntHashtable tag2code
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getValue
public java.lang.Object getValue()
Gets the corresponding object of this XmlRpcValue- Returns:
- This XmlRpcValue's object
-
endElement
public void endElement(XmlRpcValue child)
Notification that a new child element has been parsed.- Parameters:
child- The child that was parsed
-
setType
public void setType(int type)
Set the type of this value. If it's a container, this creates the corresponding Java container.- Parameters:
type- One of this class' public fields
-
characterData
public void characterData(java.lang.String cdata)
Set the character data for the element and interprets it according to the element type- Parameters:
cdata- The character data to set and interpret
-
-