Getintdef, Getshortdef, Getstringdef – HP NonStop G-Series User Manual

Page 115: Getbyteitemdef

Advertising
background image

getIntDef

Gets the integer value of a specified parameter.

int getIntDef( String name, int defValue );

Usage This method gets the integer value of the item specified in the name parameter or the specified defValue, if the
name does not exist.

Returns This method returns an integer value (32-bit).

Throws

java.lang.NoSuchFieldError.

(field name) Attempt to get a field that is not defined for this service.

getShortDef

Gets the short integer value of a specified parameter.

short getShortDef( String name, short defValue );

Usage This method gets the short integer value (16-bit) of the item specified in the name parameter or the specified
defValue, if the name does not exist.

Returns This method returns a short integer value (16-bit).

Throws

java.lang.NoSuchFieldError.

(field name) Attempt to get a field that is not defined for this service.

getStringDef

The getStringDef() method gets the string value of a specified parameter.

String getStringDef( String name, String defValue );

Usage This method gets the string value of the item specified in the name parameter or the specified defValue, if the name
does not exist. The default value can be a null string or any string that you specify.

Returns This method returns a string value.

Throws

java.lang.NoSuchFieldError.

(field name) Attempt to get a field that is not defined for this service.

getByteItemDef

Gets the byte item.

byte getByteItemDef( String name, int itemNo, byte def );

Usage This method gets the byte value of the itemNo of the name parameter. If the item does not exist, the get method
returns the default value.

Returns This method returns a byte value (8-bit).

Advertising