org.gjt.rec.util
Class Booleans.FlagType

java.lang.Object
  |
  +--org.gjt.rec.util.Enum
        |
        +--org.gjt.rec.util.Booleans.FlagType
All Implemented Interfaces:
Comparable, Serializable
Enclosing class:
Booleans

public static final class Booleans.FlagType
extends Enum

See Also:
Serialized Form

Field Summary
static List instanceList
           
static Booleans.FlagType ON_OFF
           
static Booleans.FlagType TRUE_FALSE
           
static Booleans.FlagType YES_NO
           
 
Fields inherited from class org.gjt.rec.util.Enum
REVISION
 
Method Summary
 Boolean parse(String flagString)
          Works out the Boolean value represented by a particular string using this flag convention.
 String toString(Boolean b)
          Converts a particular Boolean value to its string representation using this flag convention.
 
Methods inherited from class org.gjt.rec.util.Enum
compareTo, equals, getId, hashCode, instanceList, readResolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE_FALSE

public static final Booleans.FlagType TRUE_FALSE

YES_NO

public static final Booleans.FlagType YES_NO

ON_OFF

public static final Booleans.FlagType ON_OFF

instanceList

public static final List instanceList
Method Detail

parse

public Boolean parse(String flagString)
              throws ParseException
Works out the Boolean value represented by a particular string using this flag convention.

Parameters:
flagString - the string in which to look for a boolean value representation
Throws:
ParseException - if flagString represents neither true, false nor null

toString

public String toString(Boolean b)
Converts a particular Boolean value to its string representation using this flag convention.

Parameters:
b - the value to convert
Returns:
the string representation of b or null if b is null