org.ksoap
Class SoapPrimitive
java.lang.Object
|
+--org.ksoap.SoapPrimitive
- public class SoapPrimitive
- extends java.lang.Object
A class that is used to encapsulate primitive types
(represented by a string in XML serialization).
Basically, the SoapPrimitive class encapsulates "unknown"
primitive types (similar to SoapObject encapsulating unknown
complex types). For example, new SoapPrimitive (classMap.xsd,
"float", "12.3") allows you to send a float from a MIDP device to
a server although MIDP does not support floats. In the other
direction, kSOAP will deserialize any primitive type (=no
subelements) that are not recognized by the ClassMap to
SoapPrimitive, preserving the namespace, name and string value
(this is how the stockquote example works).
|
Constructor Summary |
SoapPrimitive(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SoapPrimitive
public SoapPrimitive(java.lang.String namespace,
java.lang.String name,
java.lang.String value)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getNamespace
public java.lang.String getNamespace()
getName
public java.lang.String getName()