Hyperic HQ Plugin API v. 4.4.0.2

org.hyperic.hq.common
Class YesOrNo

java.lang.Object
  extended by org.hyperic.util.HypericEnum
      extended by org.hyperic.hq.common.YesOrNo
All Implemented Interfaces:
java.io.Serializable, JSON

public class YesOrNo
extends HypericEnum

See Also:
Serialized Form

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

YES

public static final YesOrNo YES

NO

public static final YesOrNo NO
Method Detail

valueFor

public static YesOrNo valueFor(boolean isYes)

valueFor

public static YesOrNo valueFor(java.lang.String yesOrNo)
Return the YesOrNo equivalent of the string value.

Parameters:
yesOrNo - The string value.
Returns:
YesOrNo.YES if the case insensitive trimmed string value is y or yes; otherwise return YesOrNo.NO.

toBoolean

public java.lang.Boolean toBoolean()
Returns:
The Boolean equivalent.

Hyperic HQ Plugin API v. 4.4.0.2

Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.