at.spardat.xma.rpc
Class RemoteOperation

java.lang.Object
  extended byat.spardat.xma.rpc.RemoteOperation
Direct Known Subclasses:
RemoteCall, RemoteReply

public abstract class RemoteOperation
extends java.lang.Object

Common base class for the remote operations RemoteCall and RemoteReply.


Constructor Summary
RemoteOperation()
           
 
Method Summary
abstract  java.lang.Object getParameter(int id)
          Retrieves a parameter for a given id.
abstract  void setParameter(int id, java.lang.Object parameter)
          Adds a parameter to this call that is transferred to the server and may be accessed via getParameter(int) there.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteOperation

public RemoteOperation()
Method Detail

setParameter

public abstract void setParameter(int id,
                                  java.lang.Object parameter)
Adds a parameter to this call that is transferred to the server and may be accessed via getParameter(int) there.

Note that this feature is usually not necessary with XMA since data is automatically transferred via widget models. You should ask yourself seriously if you are doing things right.

Parameters:
id - a numeric id of the parameter. Must not be less than zero and greater than 127.
parameter - the parameter data which has to implement java.io.Serializable and must be successfully be serialized. It cannot be null.
Throws:
java.lang.IllegalArgumentException - if any before mentioned condition is violated.

getParameter

public abstract java.lang.Object getParameter(int id)
Retrieves a parameter for a given id.

Parameters:
id - the id that has been used in setParameter(int, java.lang.Object).
Returns:
the same object set via setParameter or null if there is no parameter with the given id.