com.wingfoot.soap.encoding
Class UntypedObject

java.lang.Object
  |
  +--com.wingfoot.soap.encoding.UntypedObject
All Implemented Interfaces:
WSerializable

public class UntypedObject
extends java.lang.Object
implements WSerializable

Encapsulates untyped properties. Some SOAP servers return untyped structs. Such structs are deserialized to this class.

Since:
0.90.

Field Summary
 java.lang.String hrefID
           
 
Constructor Summary
UntypedObject()
           
 
Method Summary
 int getPropertyCount()
          Returns the number of properties
 java.lang.String getPropertyName(int index)
          Given an index, the name of the property at the given index is returned.
 java.lang.Object getPropertyValue(int index)
          Given an index, the value of the property at the given index is returned.
 void setProperty(java.lang.String name, java.lang.Object value)
          Accepts and stores the name of the property and the value of the property
 void setPropertyAt(java.lang.Object value, int index)
          Replaces the xisting property at a specified index with the new value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hrefID

public java.lang.String hrefID
Constructor Detail

UntypedObject

public UntypedObject()
Method Detail

getPropertyCount

public int getPropertyCount()
Returns the number of properties
Specified by:
getPropertyCount in interface WSerializable
Returns:
the number of properties

getPropertyName

public java.lang.String getPropertyName(int index)
Given an index, the name of the property at the given index is returned.
Specified by:
getPropertyName in interface WSerializable
Parameters:
index - the index number
Returns:
the property name as String

getPropertyValue

public java.lang.Object getPropertyValue(int index)
Given an index, the value of the property at the given index is returned.
Specified by:
getPropertyValue in interface WSerializable
Parameters:
index - the index number.
Returns:
the value of the property.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Accepts and stores the name of the property and the value of the property
Specified by:
setProperty in interface WSerializable
Parameters:
name - the name of the property
the - value of the property.

setPropertyAt

public void setPropertyAt(java.lang.Object value,
                          int index)
Replaces the xisting property at a specified index with the new value.
Specified by:
setPropertyAt in interface WSerializable
Parameters:
value - - the new Object
index - - the index where the Object has to be put in. The existing Object in the index is discarded.


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

KXML is a XML parser by Lutris Technologies