Package sk.ipesoft.d2000.d2japi
Interface RpcResponseDataSet
-
public interface RpcResponseDataSetHolder of argument values that are to be returned to the synchronous caller of an RPC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetSize()Get number of arguments.sk.ipesoft.d2000.base.UnivalTypegetType(int index)Get unival type of argument at certain position.sk.ipesoft.d2000.base.UnivalValue<?>getValue(int index)Get current value of INOUT argument ornullfor IN argument.booleanisInout(int index)Get current state of INOUT-ness of an argument.voidsetIn(int index)Make an argument IN typed and clear its current value.voidsetValue(int index, sk.ipesoft.d2000.base.UnivalValue<?> value)Make an argument INOUT and set its value to new one.voidsetValues(sk.ipesoft.d2000.base.UnivalValue<?>[] values)Set values and INOUT-ness of all arguments at once.
-
-
-
Method Detail
-
getSize
int getSize()
Get number of arguments.- Returns:
- number of arguments
-
getType
sk.ipesoft.d2000.base.UnivalType getType(int index)
Get unival type of argument at certain position.- Parameters:
index- zero-based index of argument- Returns:
- unival type
-
getValue
sk.ipesoft.d2000.base.UnivalValue<?> getValue(int index)
Get current value of INOUT argument ornullfor IN argument. Initially its value is set by caller of RPC and argument is of INOUT type. It might be changed bysetValue(int, UnivalValue)orsetValues(UnivalValue[])to some other value or cleared bysetIn(int).- Parameters:
index- zero based index of argument- Returns:
- current value of argument
-
isInout
boolean isInout(int index)
Get current state of INOUT-ness of an argument. Initially are all arguments set to INOUT state. It is supposed that the called handler decides whether the argument is of IN or INOUT type. State can be changed bysetIn(int)to IN or bysetValue(int, UnivalValue)andsetValues(UnivalValue[])to INOUT state.- Parameters:
index- zero based index of argument- Returns:
truefor INOUT argument orfalsefor IN argument
-
setIn
void setIn(int index)
Make an argument IN typed and clear its current value.- Parameters:
index- zero based index of argument
-
setValue
void setValue(int index, sk.ipesoft.d2000.base.UnivalValue<?> value)Make an argument INOUT and set its value to new one.UnivalCommon.getUnivalType()ofvaluemust be the same asgetType(int)for the actuall argument.valuemust not benull.- Parameters:
index- zero based index of argumentvalue- new value of argument
-
setValues
void setValues(sk.ipesoft.d2000.base.UnivalValue<?>[] values)
Set values and INOUT-ness of all arguments at once.values.lengthmust be the same asgetSize()and unival type of each element must fit with the required unival type for corresponding argument.nullvalue of anvalueselement makes the corresponding argument IN typed and clears its value.- Parameters:
values- array of new argument values
-
-