com.wingfoot.soap.encoding
Interface WSerializable

All Known Implementing Classes:
UntypedObject

public interface WSerializable

Interface with abstract methods to facilitate reflection. Typical concrete implementations of this interface are JavaBeans with their properties getting serialized.

Since:
0.90

Method Summary
 int getPropertyCount()
          Implementation of this abstract method returns the number of property to serialize.
 java.lang.String getPropertyName(int index)
          Implementation of this abstract method returns the name of the property for the given index.
 java.lang.Object getPropertyValue(int index)
          Implementation of this abstract method returns the value of the property for the given index.
 void setProperty(java.lang.String propertyName, java.lang.Object propertyValue)
          Sets a property to a value.
 void setPropertyAt(java.lang.Object newProperty, int index)
          Replaces the property at the specified index with the newProperty.
 

Method Detail

getPropertyCount

public int getPropertyCount()
Implementation of this abstract method returns the number of property to serialize.
Returns:
the number of properties in the Bean.

getPropertyName

public java.lang.String getPropertyName(int index)
Implementation of this abstract method returns the name of the property for the given index.
Parameters:
index - the property number.
Returns:
the name of the property corresponding to the index.

getPropertyValue

public java.lang.Object getPropertyValue(int index)
Implementation of this abstract method returns the value of the property for the given index.
Parameters:
index - the property number.
Returns:
the value of the property represented as an java object corresponding to the index.

setProperty

public void setProperty(java.lang.String propertyName,
                        java.lang.Object propertyValue)
Sets a property to a value.
Parameters:
propertyName - the name of the property.
propertyValue - the value of the property represented as an Object. Primitive data types are represented as their corresponding wrapper class.

setPropertyAt

public void setPropertyAt(java.lang.Object newProperty,
                          int index)
Replaces the property at the specified index with the newProperty. The existing property is discarded.
Parameters:
newProperty - Object representing the new value to be substituted.
index - the index where newProperty is to be substituted.


Copyright(c) Wingfoot Software (www.wingfoot.com). All Rights Reserved.

KXML is a XML parser by Lutris Technologies