edu.ksu.cis.projects.bogor.module.config
Enum Domain

java.lang.Object
  extended by java.lang.Enum<Domain>
      extended by edu.ksu.cis.projects.bogor.module.config.Domain
All Implemented Interfaces:
Serializable, Comparable<Domain>

public enum Domain
extends Enum<Domain>

Set of basic domains from which scalar types of options are drawn.

Version:
CVS $Revision: 1.1 $ $Date: 2005/02/16 17:40:10 $
Author:
Matt Hoosier

Enum Constant Summary
BOOLEAN
           
CLASS_NAME
           
DOUBLE
           
FLOAT
           
INT
           
LONG
           
STRING
           
 
Method Summary
 boolean isNumeric()
          Queries whether the UI should interrogate a module via ISelfDescribingModule#getSuggestedValues(String, SymbolTable) to get a set of reasonable choices for the option's value.
static Domain valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Domain[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final Domain STRING

CLASS_NAME

public static final Domain CLASS_NAME

INT

public static final Domain INT

LONG

public static final Domain LONG

FLOAT

public static final Domain FLOAT

DOUBLE

public static final Domain DOUBLE

BOOLEAN

public static final Domain BOOLEAN
Method Detail

values

public static final Domain[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Domain c : Domain.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Domain valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

isNumeric

public boolean isNumeric()
Queries whether the UI should interrogate a module via ISelfDescribingModule#getSuggestedValues(String, SymbolTable) to get a set of reasonable choices for the option's value.