|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.util.HypericEnum
org.hyperic.hq.common.YesOrNo
public class YesOrNo
Field Summary | |
---|---|
static YesOrNo |
NO
|
static YesOrNo |
YES
|
Method Summary | |
---|---|
java.lang.Boolean |
toBoolean()
|
static YesOrNo |
valueFor(boolean isYes)
|
static YesOrNo |
valueFor(java.lang.String yesOrNo)
Return the YesOrNo equivalent of the string value. |
Methods inherited from class org.hyperic.util.HypericEnum |
---|
findByCode, findByDescription, getAll, getByCode, getCode, getDescription, getJsonName, getValue, toJSON, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final YesOrNo YES
public static final YesOrNo NO
Method Detail |
---|
public static YesOrNo valueFor(boolean isYes)
public static YesOrNo valueFor(java.lang.String yesOrNo)
YesOrNo
equivalent of the string value.
yesOrNo
- The string value.
YesOrNo.YES
if the case insensitive trimmed string
value is y
or yes
;
otherwise return YesOrNo.NO
.public java.lang.Boolean toBoolean()
|
Hyperic HQ Plugin API v. 4.4.0.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |