moagg.types.prefs
Enum Language

java.lang.Object
  extended by java.lang.Enum<Language>
      extended by moagg.types.prefs.Language
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Language>

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


Enum Constant Summary
DE
           
EN
           
IT
           
 
Method Summary
static Language fromString(java.lang.String lang)
           
 java.lang.String getDescription()
           
 java.util.Locale getLocale()
           
 void setDefaultLocale()
           
static Language valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Language[] 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

EN

public static final Language EN

DE

public static final Language DE

IT

public static final Language IT
Method Detail

values

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

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

valueOf

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

getDescription

public java.lang.String getDescription()

setDefaultLocale

public void setDefaultLocale()

getLocale

public java.util.Locale getLocale()

fromString

public static Language fromString(java.lang.String lang)


Copyright © 2008. All Rights Reserved.