|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.client.ipc.rpc.RPCParam
public class RPCParam
This class represents a parameter (both input and output) in remote procedure calls. This implementation supports the types specified by Xml Rpc. A parameter can be a scalar type (int, string and so on) or a complex one, like an array or a struct. The definition of RPCParam is recursive to accomodate the recursive nature of types. Arrays and structs have elements which are RPCParam, allowing for arbitrary complex data to be represented.
Field Summary | |
---|---|
static int |
TYPE_ARRAY
|
static int |
TYPE_BASE64
|
static int |
TYPE_BOOLEAN
|
static int |
TYPE_DATETIME
|
static int |
TYPE_DOUBLE
|
static int |
TYPE_INT
|
static int |
TYPE_STRING
|
static int |
TYPE_STRUCT
|
Constructor Summary | |
---|---|
RPCParam()
Construct an empty parameter, with type STRING |
Method Summary | |
---|---|
RPCParam[] |
getArrayValue()
Get the parameter value as an array. |
java.lang.String |
getBase64Value()
Get the parameter value as a string representing base64 data. |
boolean |
getBooleanValue()
Get the parameter value as a boolean. |
java.lang.String |
getDateTimeValue()
Get the parameter value as a string representing date time. |
double |
getDoubleValue()
Get the parameter value as a double. |
int |
getIntValue()
Get the parameter value as a integer. |
java.lang.String |
getName()
Get the parameter name. |
java.lang.String |
getStringValue()
Get the parameter value as a string. |
RPCParam[] |
getStructValue()
Get the parameter value as a struct. |
int |
getType()
Get the parameter type. |
void |
setArrayValue(RPCParam[] value)
Set the array value of this parameter. |
void |
setBase64Value(java.lang.String value)
Set the base 64 (string) value of this parameter. |
void |
setBooleanValue(boolean value)
Set the boolean value of this parameter. |
void |
setDateTimeValue(java.lang.String value)
Set the date time (string) value of this parameter. |
void |
setDoubleValue(double value)
Set the double value of this parameter. |
void |
setIntValue(int value)
Set the integer value of this parameter. |
void |
setName(java.lang.String name)
Set the parameter name. |
void |
setStringValue(java.lang.String value)
Set the string value of this parameter. |
void |
setStructValue(RPCParam[] value)
Set the struct value of this parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_INT
public static final int TYPE_STRING
public static final int TYPE_BOOLEAN
public static final int TYPE_BASE64
public static final int TYPE_DOUBLE
public static final int TYPE_DATETIME
public static final int TYPE_ARRAY
public static final int TYPE_STRUCT
Constructor Detail |
---|
public RPCParam()
Method Detail |
---|
public int getType()
public java.lang.String getStringValue()
public int getIntValue()
public double getDoubleValue()
public java.lang.String getDateTimeValue()
public java.lang.String getBase64Value()
public boolean getBooleanValue()
public RPCParam[] getArrayValue()
public RPCParam[] getStructValue()
public java.lang.String getName()
public void setIntValue(int value)
value
- the valuepublic void setDoubleValue(double value)
value
- the valuepublic void setStringValue(java.lang.String value)
value
- the valuepublic void setBase64Value(java.lang.String value)
value
- the valuepublic void setDateTimeValue(java.lang.String value)
value
- the valuepublic void setBooleanValue(boolean value)
value
- the valuepublic void setArrayValue(RPCParam[] value)
value
- the valuepublic void setStructValue(RPCParam[] value)
value
- the valuepublic void setName(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |