cz.zcu.fav.kiv.editor.config.constants
Enum TypeEnum

java.lang.Object
  extended by java.lang.Enum<TypeEnum>
      extended by cz.zcu.fav.kiv.editor.config.constants.TypeEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TypeEnum>

public enum TypeEnum
extends java.lang.Enum<TypeEnum>

The ComponentEnum class is the enumerated list of GUI components supported by the application. Components are used for displaying parameter Types.

Version:
1.0, 05/2007
Author:
Marta Vaclavikova

Enum Constant Summary
ATTRIBUTE_SET
           
BOOLEAN
           
COLOR
           
FILENAME
           
FLOAT
           
FONT
           
INTEGER
           
LENGTH
           
LIST
           
LIST_OPEN
           
NUMBER
           
RTF
           
STRING
           
TABLE
           
URI
           
 
Method Summary
static boolean contains(java.lang.String name)
          Specifies if the input component is among predefined components ComponentEnum.
static TypeEnum getValue(java.lang.String name)
          Returns ComponentEnum object for the corresponding name.
 java.lang.String toString()
           
static TypeEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TypeEnum[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final TypeEnum BOOLEAN

STRING

public static final TypeEnum STRING

INTEGER

public static final TypeEnum INTEGER

TABLE

public static final TypeEnum TABLE

FLOAT

public static final TypeEnum FLOAT

LIST

public static final TypeEnum LIST

LIST_OPEN

public static final TypeEnum LIST_OPEN

LENGTH

public static final TypeEnum LENGTH

URI

public static final TypeEnum URI

NUMBER

public static final TypeEnum NUMBER

COLOR

public static final TypeEnum COLOR

FILENAME

public static final TypeEnum FILENAME

RTF

public static final TypeEnum RTF

FONT

public static final TypeEnum FONT

ATTRIBUTE_SET

public static final TypeEnum ATTRIBUTE_SET
Method Detail

values

public static TypeEnum[] 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 (TypeEnum c : TypeEnum.values())
    System.out.println(c);

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

valueOf

public static TypeEnum 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

getValue

public static TypeEnum getValue(java.lang.String name)
Returns ComponentEnum object for the corresponding name. If the input component is not supported then the DUMMY component is returned.

Parameters:
name - the name of the component.
Returns:
the component for the input name.

contains

public static boolean contains(java.lang.String name)
Specifies if the input component is among predefined components ComponentEnum.

Parameters:
name - the name of the component.
Returns:
true if the component is among predefined components.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<TypeEnum>