|
VistALink v1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.va.med.vistalink.rpc.RpcReferenceType
public class RpcReferenceType
Represents a reference type object for an RPC parameter. Used mainly for RpcRequest.setParams() call to represent a 'reference' type parameter.
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 Summary | |
---|---|
RpcReferenceType()
Default constructor |
|
RpcReferenceType(java.lang.String value)
Constructs this instance with the specified value |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RpcReferenceType()
public RpcReferenceType(java.lang.String value)
value
- Name of variable to be referenced, like DUZMethod Detail |
---|
public 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.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |