com.flexive.shared
Class FxLanguage

java.lang.Object
  extended by com.flexive.shared.AbstractSelectableObjectWithName
      extended by com.flexive.shared.FxLanguage
All Implemented Interfaces:
ObjectWithLabel, SelectableObject, SelectableObjectWithLabel, SelectableObjectWithName, java.io.Serializable

public class FxLanguage
extends AbstractSelectableObjectWithName
implements java.io.Serializable, SelectableObjectWithLabel

Languages Provides mapping functions between language system constants , iso codes and english descriptions.

Version:
$Rev: 462 $
Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)
See Also:
Serialized Form

Field Summary
static FxLanguage DEFAULT
          default language object
static long DEFAULT_ID
          default language (english)
static java.lang.String DEFAULT_ISO
          default language ISO code
static long ENGLISH
          pre defined language english
static long FRENCH
          pre defined language french
static long GERMAN
          pre defined language german
static long ITALIAN
          pre defined language italian
static long SYSTEM_ID
          language set for groups or not localized properties
 
Constructor Summary
FxLanguage(long id, java.lang.String iso2digit, FxString name, boolean licensed)
          Language constructor.
FxLanguage(java.lang.String localeIso)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 long getId()
          The object's unique identifier
 java.lang.String getIso2digit()
           
 FxString getLabel()
          Return the localized label of the object.
 java.util.Locale getLocale()
           
 java.lang.String getName()
          The displayed name of the object.
 int hashCode()
          
 boolean isLicensed()
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SYSTEM_ID

public static final long SYSTEM_ID
language set for groups or not localized properties

See Also:
Constant Field Values

DEFAULT_ID

public static final long DEFAULT_ID
default language (english)

See Also:
Constant Field Values

DEFAULT_ISO

public static final java.lang.String DEFAULT_ISO
default language ISO code

See Also:
Constant Field Values

DEFAULT

public static final FxLanguage DEFAULT
default language object


ENGLISH

public static final long ENGLISH
pre defined language english

See Also:
Constant Field Values

GERMAN

public static final long GERMAN
pre defined language german

See Also:
Constant Field Values

FRENCH

public static final long FRENCH
pre defined language french

See Also:
Constant Field Values

ITALIAN

public static final long ITALIAN
pre defined language italian

See Also:
Constant Field Values
Constructor Detail

FxLanguage

public FxLanguage(long id,
                  java.lang.String iso2digit,
                  FxString name,
                  boolean licensed)
Language constructor.

Parameters:
id - the language ID
iso2digit - the 2-digit ISO code (en, de, fr, ...)
name - the localized language name
licensed - if the language is licensed for the current server installation

FxLanguage

public FxLanguage(java.lang.String localeIso)
Method Detail

getId

public long getId()
Description copied from interface: SelectableObject
The object's unique identifier

Specified by:
getId in interface SelectableObject
Returns:
the object's unique identiefier

getIso2digit

public java.lang.String getIso2digit()

getLocale

public java.util.Locale getLocale()

getName

public java.lang.String getName()
The displayed name of the object.

Specified by:
getName in interface SelectableObjectWithName
Returns:
the displayed name of the object.

getLabel

public FxString getLabel()
Return the localized label of the object.

Specified by:
getLabel in interface ObjectWithLabel
Returns:
the localized label for the object.

isLicensed

public boolean isLicensed()

toString

public java.lang.String toString()

Overrides:
toString in class AbstractSelectableObjectWithName

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class AbstractSelectableObjectWithName

hashCode

public int hashCode()

Overrides:
hashCode in class AbstractSelectableObjectWithName