Package org.igniterealtime.jbosh
Class AttrHold
java.lang.Object
org.igniterealtime.jbosh.AbstractAttr<Integer>
org.igniterealtime.jbosh.AbstractIntegerAttr
org.igniterealtime.jbosh.AttrHold
- All Implemented Interfaces:
Comparable
Data type representing the getValue of the
hold
attribute of the
bosh
element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static AttrHold
createFromString
(String str) Creates a new attribute instance from the provided String.Methods inherited from class org.igniterealtime.jbosh.AbstractIntegerAttr
checkMinValue, intValue
-
Constructor Details
-
AttrHold
Creates a new attribute object.- Parameters:
val
- attribute getValue- Throws:
BOSHException
- on parse or validation failure
-
-
Method Details
-
createFromString
Creates a new attribute instance from the provided String.- Parameters:
str
- string representation of the attribute- Returns:
- attribute instance or
null
if provided string isnull
- Throws:
BOSHException
- on parse or validation failure
-