Package africa.absa.inception.reference
Class Language
- java.lang.Object
-
- africa.absa.inception.reference.Language
-
- All Implemented Interfaces:
Serializable
@Entity public class Language extends Object implements Serializable
The Language class holds the information for a language.See: https://en.wikipedia.org/wiki/List_of_official_languages_by_country_and_territory
- Author:
- Marcus Portmann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Language()Constructs a new Language.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Indicates whether some other object is "equal to" this one.StringgetCode()Returns the ISO 639-1 alpha-2 code for the language.StringgetDescription()Returns the description for the language.StringgetIso3Code()Returns the ISO 639-2 alpha-3 code for the language.StringgetLocaleId()Returns the Unicode locale identifier for the language.StringgetName()Returns the name of the language.StringgetShortName()Returns the short name for the language.IntegergetSortIndex()Returns the sort index for the language.inthashCode()Returns a hash code value for the object.voidsetCode(String code)Set the ISO 639-1 alpha-2 code for the language.voidsetDescription(String description)Set the description for the language.voidsetIso3Code(String iso3Code)Set the ISO 639-2 alpha-3 code for the language.voidsetLocaleId(String localeId)Set the Unicode locale identifier for the language.voidsetName(String name)Set the name of the language.voidsetShortName(String shortDescription)Set the short name for the language.voidsetSortIndex(Integer sortIndex)Set the sort index for the language.
-
-
-
Method Detail
-
equals
public boolean equals(Object object)
Indicates whether some other object is "equal to" this one.
-
getCode
public String getCode()
Returns the ISO 639-1 alpha-2 code for the language.- Returns:
- the ISO 639-1 alpha-2 code for the language
-
getDescription
public String getDescription()
Returns the description for the language.- Returns:
- the description for the language
-
getIso3Code
public String getIso3Code()
Returns the ISO 639-2 alpha-3 code for the language.- Returns:
- the ISO 639-2 alpha-3 code for the language
-
getLocaleId
public String getLocaleId()
Returns the Unicode locale identifier for the language.- Returns:
- the Unicode locale identifier for the language
-
getName
public String getName()
Returns the name of the language.- Returns:
- the name of the language
-
getShortName
public String getShortName()
Returns the short name for the language.- Returns:
- the short name for the language
-
getSortIndex
public Integer getSortIndex()
Returns the sort index for the language.- Returns:
- the sort index for the language
-
hashCode
public int hashCode()
Returns a hash code value for the object.
-
setCode
public void setCode(String code)
Set the ISO 639-1 alpha-2 code for the language.- Parameters:
code- the ISO 639-1 alpha-2 code for the language
-
setDescription
public void setDescription(String description)
Set the description for the language.- Parameters:
description- the description for the language
-
setIso3Code
public void setIso3Code(String iso3Code)
Set the ISO 639-2 alpha-3 code for the language.- Parameters:
iso3Code- the ISO 639-2 alpha-3 code for the language
-
setLocaleId
public void setLocaleId(String localeId)
Set the Unicode locale identifier for the language.- Parameters:
localeId- the Unicode locale identifier for the language
-
setName
public void setName(String name)
Set the name of the language.- Parameters:
name- the name of the language
-
setShortName
public void setShortName(String shortDescription)
Set the short name for the language.- Parameters:
shortDescription- the short name for the language
-
setSortIndex
public void setSortIndex(Integer sortIndex)
Set the sort index for the language.- Parameters:
sortIndex- the sort index for the language
-
-