org.keridwen.core.i18n.entry
Enum EntryType

java.lang.Object
  extended by java.lang.Enum<EntryType>
      extended by org.keridwen.core.i18n.entry.EntryType
All Implemented Interfaces:
Serializable, Comparable<EntryType>

public enum EntryType
extends Enum<EntryType>

Defines the possible entry types for a i18n dictionary.


Enum Constant Summary
COLOR
          Color.
DATE
          Date.
FONT
          Font.
ICON
          Icon.
IMAGE
          Image.
KEY_STROKE
          Key stroke.
MNEMONIC
          Mnemonic (integer).
STRING
          String.
 
Method Summary
 Class<?> getTypeClass()
          Gets the class of the entry type.
static EntryType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EntryType[] 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

STRING

public static final EntryType STRING
String.


IMAGE

public static final EntryType IMAGE
Image.


ICON

public static final EntryType ICON
Icon.


COLOR

public static final EntryType COLOR
Color.


KEY_STROKE

public static final EntryType KEY_STROKE
Key stroke.


MNEMONIC

public static final EntryType MNEMONIC
Mnemonic (integer).


DATE

public static final EntryType DATE
Date.


FONT

public static final EntryType FONT
Font.

Method Detail

values

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

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

valueOf

public static EntryType 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
NullPointerException - if the argument is null

getTypeClass

public Class<?> getTypeClass()
Gets the class of the entry type.

Returns:
the class associated with the entry type


Copyright © 2011-2013 Artenum. All Rights Reserved.