HP NonStop G-Series User Manual
Page 112
setRequestPriority
●
Input Parameter Methods. These methods are used to set the value of a named item that must be one of the input
parameters. If the named item does not exist, the value is added. These methods include the following:
setByte
●
setBytes
●
setDouble
●
setFloat
●
setInt
●
setShort
●
setString
●
setByteItem
●
setBytesItem
●
setDoubleItem
●
setFloatItem
●
setIntItem
●
setShortItem
●
setStringItem
●
For all of the set...Item methods, if an item exists, the set method will overwrite it. The parameter itemNo specifies an
index that points to the value. If there are gaps in the index (that is, you set a value for itemNo 3 and there are no values
set for itemNo 0, 1, and 2) these items will be set with:
an empty string, "", for string values
●
0 for short, int, or byte values
●
0.0 for floating point and double precision values
●
null for byte arrays
●
In the following example, the setStringItem method is used to change the name John to Jim. The itemNo parameter
specifies a list of names. Currently, the name John exists for itemNo 2. To change the name you might write:
setStringItem ("names", 2, "jim");
All indexes specified by itemNo start at 0 and increment. Therefore, the second item in a list is actually itemNo 1 and the
first item in the list is actually itemNo 0.
Add and Delete Methods
The add and delete methods are used to add or delete values for the remote service object. These methods manipulate the
input parameters. These methods include:
addByte
●
addBytes
●
addDouble
●
addFloat
●
addInt
●