org.kobjects.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()
          returns the number of serializable properties
 void getPropertyInfo(int index, 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

public 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

public int getPropertyCount()
returns the number of serializable properties

setProperty

public 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

public void getPropertyInfo(int index,
                            PropertyInfo info)
Fills the given property info record