|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ksoap2.serialization.SoapObject
public class SoapObject
A simple dynamic object that can be used to build soap calls without implementing KvmSerializable Essentially, this is what goes inside the body of a soap envelope - it is the direct subelement of the body and all further subelements Instead of this this class, custom classes can be used if they implement the KvmSerializable interface.
| Constructor Summary | |
|---|---|
SoapObject(java.lang.String namespace,
java.lang.String name)
Creates a new SoapObject instance. |
|
| Method Summary | |
|---|---|
SoapObject |
addProperty(PropertyInfo propertyInfo,
java.lang.Object value)
Adds a property (parameter) to the object. |
SoapObject |
addProperty(java.lang.String name,
java.lang.Object value)
Adds a property (parameter) to the object. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
|
java.lang.String |
getNamespace()
|
java.lang.Object |
getProperty(int index)
Returns a specific property at a certain index. |
java.lang.Object |
getProperty(java.lang.String name)
|
int |
getPropertyCount()
Returns the number of properties |
void |
getPropertyInfo(int index,
java.util.Hashtable properties,
PropertyInfo propertyInfo)
Places PropertyInfo of desired property into a designated PropertyInfo object |
SoapObject |
newInstance()
Creates a new SoapObject based on this, allows usage of SoapObjects as templates. |
void |
setProperty(int index,
java.lang.Object value)
Sets a specified property to a certain value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SoapObject(java.lang.String namespace,
java.lang.String name)
SoapObject instance.
namespace - the namespace for the soap objectname - the name of the soap object| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getName()
public java.lang.String getNamespace()
public java.lang.Object getProperty(int index)
getProperty in interface KvmSerializableindex - the index of the desired property
public java.lang.Object getProperty(java.lang.String name)
public int getPropertyCount()
getPropertyCount in interface KvmSerializable
public void getPropertyInfo(int index,
java.util.Hashtable properties,
PropertyInfo propertyInfo)
getPropertyInfo in interface KvmSerializableindex - index of desired propertypropertyInfo - designated retainer of desired propertyproperties - information about the (de)serializer. Not frequently used.public SoapObject newInstance()
public void setProperty(int index,
java.lang.Object value)
setProperty in interface KvmSerializableindex - the index of the specified propertyvalue - the new value of the property
public SoapObject addProperty(java.lang.String name,
java.lang.Object value)
name - The name of the propertyvalue - the value of the property
public SoapObject addProperty(PropertyInfo propertyInfo,
java.lang.Object value)
propertyInfo - designated retainer of desired propertyvalue - the value of the propertypublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||