org.ksoap2.serialization
Class PropertyInfo

java.lang.Object
  extended by org.ksoap2.serialization.PropertyInfo
Direct Known Subclasses:
AttributeInfo

public class PropertyInfo
extends Object

This class is used to store information about each property an implementation of KvmSerializable exposes.


Field Summary
static Class BOOLEAN_CLASS
           
 PropertyInfo elementType
          Element type for array properties, null if not array prop.
 int flags
          Type of property, Transient, multi_ref, Ref_only *JHS* Note, not really used that effectively
static Class INTEGER_CLASS
           
static Class LONG_CLASS
           
static int MULTI_REF
           
 boolean multiRef
          if a property is multi-referenced, set this flag to true.
 String name
          Name of the property
 String namespace
          Namespace of this property
static Class OBJECT_CLASS
           
static PropertyInfo OBJECT_TYPE
           
static int REF_ONLY
           
static Class STRING_CLASS
           
static int TRANSIENT
           
 Object type
          Type of the property/elements.
protected  Object value
          The current value of this property.
static Class VECTOR_CLASS
           
 
Constructor Summary
PropertyInfo()
           
 
Method Summary
 void clear()
           
 PropertyInfo getElementType()
           
 int getFlags()
           
 String getName()
           
 String getNamespace()
           
 Object getType()
           
 Object getValue()
           
 boolean isMultiRef()
           
 void setElementType(PropertyInfo elementType)
           
 void setFlags(int flags)
           
 void setMultiRef(boolean multiRef)
           
 void setName(String name)
           
 void setNamespace(String namespace)
           
 void setType(Object type)
           
 void setValue(Object value)
           
 String toString()
          Show the name and value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_CLASS

public static final Class OBJECT_CLASS

STRING_CLASS

public static final Class STRING_CLASS

INTEGER_CLASS

public static final Class INTEGER_CLASS

LONG_CLASS

public static final Class LONG_CLASS

BOOLEAN_CLASS

public static final Class BOOLEAN_CLASS

VECTOR_CLASS

public static final Class VECTOR_CLASS

OBJECT_TYPE

public static final PropertyInfo OBJECT_TYPE

TRANSIENT

public static final int TRANSIENT
See Also:
Constant Field Values

MULTI_REF

public static final int MULTI_REF
See Also:
Constant Field Values

REF_ONLY

public static final int REF_ONLY
See Also:
Constant Field Values

name

public String name
Name of the property


namespace

public String namespace
Namespace of this property


flags

public int flags
Type of property, Transient, multi_ref, Ref_only *JHS* Note, not really used that effectively


value

protected Object value
The current value of this property.


type

public Object type
Type of the property/elements. Should usually be an instance of Class.


multiRef

public boolean multiRef
if a property is multi-referenced, set this flag to true.


elementType

public PropertyInfo elementType
Element type for array properties, null if not array prop.

Constructor Detail

PropertyInfo

public PropertyInfo()
Method Detail

clear

public void clear()

getElementType

public PropertyInfo getElementType()
Returns:
Returns the elementType.

setElementType

public void setElementType(PropertyInfo elementType)
Parameters:
elementType - The elementType to set.

getFlags

public int getFlags()
Returns:
Returns the flags.

setFlags

public void setFlags(int flags)
Parameters:
flags - The flags to set.

isMultiRef

public boolean isMultiRef()
Returns:
Returns the multiRef.

setMultiRef

public void setMultiRef(boolean multiRef)
Parameters:
multiRef - The multiRef to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getNamespace

public String getNamespace()
Returns:
Returns the namespace.

setNamespace

public void setNamespace(String namespace)
Parameters:
namespace - The namespace to set.

getType

public Object getType()
Returns:
Returns the type.

setType

public void setType(Object type)
Parameters:
type - The type to set.

getValue

public Object getValue()
Returns:
Returns the value.

setValue

public void setValue(Object value)
Parameters:
value - The value to set.

toString

public String toString()
Show the name and value.

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2002-2011. All Rights Reserved.