Joltmessage methods, Getoccurrencecount, Getbytedef – HP NonStop G-Series User Manual
Page 130: Getshortdef

//These methods are duplicates of the JoltRequestMessage class
//They are inherited from that class.
public int getOccurrenceCount(String name);
public byte getByteDef(String name, byte def);
public short getShortDef(String name, short def);
public int getIntDef(String name, int def);
public float getFloatDef(String name, float def);
public double getDoubleDef(String name, double def);
public String getStringDef(String name, String def);
public byte[] getBytesDef(String name, byte def[]);
public byte getByteItemDef(String name, int itemNo, byte def);
public short getShortItemDef(String name, int itemNo, short def);
public int getIntItemDef(String name, int itemNo, int def);
public float getFloatItemDef(String name, int itemNo, float def);
public double getDoubleItemDef(String name, int itemNo, double def);
public byte[] getBytesItemDef(String name, int itemNo, byte def[]);
public String getStringItemDef(String name, int itemNo, String def);
JoltMessage Methods
The following methods are used with the JoltMessage class.
getOccurrenceCount
Gets the number of occurrence of a named item.
synchronized int getOccurrenceCount(String name)
Usage name specifies the name of the item.
Throws
NoSuchFieldError.
It is an invalid name.
getByteDef
Gets the first item based on its name.
public byte getByteDef(String name, byte def)
Usage Get the first item based on its name. If it does not exist, the default value will be returned.
Returns A byte value.
Throws
NoSuchFieldError.
It is an invalid name.
getShortDef
Gets the first item based on its name.
short getShortDef(String name, short def)