public class SActionData
extends java.lang.Object
Constructor and Description |
---|
SActionData()
creates a void SActionData set
|
SActionData(MessageReader reader)
creates an action data from an incoming message
|
Modifier and Type | Method and Description |
---|---|
void |
addCLinkAttribute(java.lang.String name,
java.lang.String payload)
actions that have as input only object ids can be sent to the server through
a CLink (equivalent to an http query with attribute)
|
void |
addData(DataElt element)
adds a data element to this action data set
|
DataElt |
getAttribute(int index)
gets the attribute at the specified index
|
DataElt |
lookupAttributeOnName(java.lang.String name)
gets an attribute by name
|
int |
size() |
public SActionData()
public SActionData(MessageReader reader) throws OLcRemoteException, java.io.IOException
reader
- the reader to get payload fromOLcRemoteException
- exception to be sent back to the clientjava.io.IOException
- any IO exception while decoding the messagepublic void addCLinkAttribute(java.lang.String name, java.lang.String payload)
name
- name of the attributepayload
- payload of the attributepublic void addData(DataElt element)
element
- the element to addpublic int size()
public DataElt getAttribute(int index)
index
- a number between 0 (included) and size (excluded)public DataElt lookupAttributeOnName(java.lang.String name)
name
- name of the attribute