public class RpcReferenceType
extends java.lang.Object
J2SE Example:
//The Rpc Context
//The Rpc to call
//Construct the request object
//clear the params
//Create an arraylist for the params
//Clear the arraylist
//add a new VistaRpcReferenceType to the array list
//Add the araylist with the VistaRpcReferenceType to the request as a param
//An alternate way of doing the above
//Execute the Rpc and get the response
//Work with the response ...
//request and response objects
RpcRequest vReq = null;
RpcResponse vResp = null;
String rpcContext = "XOBV VISTALINK TESTER";
String rpcName = "XWB GET VARIABLE VALUE";
vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName);
vReq.clearParams()
ArrayList params = new ArrayList();
params.clear();
params.add(new VistaRpcReferenceType("DTIME"));
vReq. setParams(params);
vReq.getParams().setParam(1, "ref", "DT");
vResp = myConnection.executeRPC(vReq);
Constructor and Description |
---|
RpcReferenceType()
Default constructor
|
RpcReferenceType(java.lang.String value)
Constructs this instance with the specified value
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Returns name of the variable desired in the M server partition.
|
void |
setValue(java.lang.String value)
Sets the value to the name of the variable desired in the M server
partition.
|
java.lang.String |
toString()
Returns name of the variable desired in the M server partition.
|
public RpcReferenceType()
public RpcReferenceType(java.lang.String value)
value
- Name of variable to be referenced, like DUZpublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value to setpublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
VistALink v1.6a