Getfloatdef, Getintdef, Getshortdef – HP NonStop G-Series User Manual
Page 101
![background image](/manuals/398286/101/background.png)
Occurs when the user tries to set an attribute which is not one of the predefined attributes.
getFloatDef
Gets the floating point value of an item.
float getFloatDef( String name, float defValue );
Usage Gets the floating point value of the item specified in the name parameter or the specified defValue, if the name
does not exist.
Returns This method returns a floating point value (32-bit).
Throws
java.lang.IllegalAccessError.
Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.
java.lang.NoSuchFieldError.
Occurs when the user tries to set an attribute which is not one of the predefined attributes.
getIntDef
Gets the integer value of an item.
int getIntDef( String name, int defValue );
Usage 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.IllegalAccessError.
Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.
java.lang.NoSuchFieldError.
Occurs when the user tries to set an attribute which is not one of the predefined attributes.
getShortDef
Gets the short integer value of an item.
short getShortDef( String name, short defValue );
Usage Gets the short integer value 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.IllegalAccessError.
Occurs when the user tries to set a value to a get-only attribute, or to get a value from a set-only attribute.
java.lang.NoSuchFieldError.
Occurs when the user tries to set an attribute which is not one of the predefined attributes.