org.ksoap2.serialization
Interface KvmSerializable

All Known Implementing Classes:
SoapObject

public interface KvmSerializable

Provides get and set methods for properties. Can be used to replace reflection (to some extend) for "serialization-aware" classes. Currently used in kSOAP and the RMS based kobjects object repository


Method Summary
 java.lang.Object getProperty(int index)
          Returns the property at a specified index (for serialization)
 int getPropertyCount()
           
 void getPropertyInfo(int index, java.util.Hashtable properties, PropertyInfo info)
          Fills the given property info record.
 void setProperty(int index, java.lang.Object value)
          Sets the property with the given index to the given value.
 

Method Detail

getProperty

java.lang.Object getProperty(int index)
Returns the property at a specified index (for serialization)

Parameters:
index - the specified index
Returns:
the serialized property

getPropertyCount

int getPropertyCount()
Returns:
the number of serializable properties

setProperty

void setProperty(int index,
                 java.lang.Object value)
Sets the property with the given index to the given value.

Parameters:
index - the index to be set
value - the value of the property

getPropertyInfo

void getPropertyInfo(int index,
                     java.util.Hashtable properties,
                     PropertyInfo info)
Fills the given property info record.

Parameters:
index - the index to be queried
properties - information about the (de)serializer. Not frequently used.
info - The return parameter, to be filled with information about the property with the given index.