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
 Object getProperty(int index)
          Get the property at the given index
 int getPropertyCount()
           
 void getPropertyInfo(int index, Hashtable properties, PropertyInfo info)
          Fills the given property info record.
 void setProperty(int index, Object value)
          Sets the property with the given index to the given value.
 

Method Detail

getProperty

Object getProperty(int index)
Get the property at the given index


getPropertyCount

int getPropertyCount()
Returns:
the number of serializable properties

setProperty

void setProperty(int index,
                 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,
                     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.


Copyright © 2002-2011. All Rights Reserved.