cdx.scorebot.util.config
Enum ComponType

java.lang.Object
  extended by java.lang.Enum<ComponType>
      extended by cdx.scorebot.util.config.ComponType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ComponType>

public enum ComponType
extends java.lang.Enum<ComponType>
implements java.io.Serializable

an enumeration of different kinds of input which will be associated with different component types

Author:
David Underhill

Enum Constant Summary
ANY
          Any value will be permitted which is represented by a TextField on the GUI
BINARY
          Any boolean value will be permitted which is represented by a CheckBox on the GUI
MULTI
          Select values will be permitted which is represented by a ComboBox on the GUI
 
Method Summary
static ComponType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ComponType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANY

public static final ComponType ANY
Any value will be permitted which is represented by a TextField on the GUI


BINARY

public static final ComponType BINARY
Any boolean value will be permitted which is represented by a CheckBox on the GUI


MULTI

public static final ComponType MULTI
Select values will be permitted which is represented by a ComboBox on the GUI

Method Detail

values

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

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

valueOf

public static ComponType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null