Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

## org.hyperic.hq.common
Class YesOrNo

    java.lang.Object
      org.hyperic.util.HypericEnum
          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.

Overview | Package | Class | Tree | Deprecated | Index | Help
| 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

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