Package ca.phon.util
Class LanguageEntry
java.lang.Object
ca.phon.util.LanguageEntry
An entry in the ISO-639-3 code set. May also
include custom userIds.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Commentsstatic final String
639-1 codestatic final String
639-2 bibliographicstatic final String
639-2 terminologystatic final String
639-3 codestatic final String
Reference language namestatic final String
One of: - I(ndividual) - M(acrolanguage) - S(pecial)static final String
One of: - A(ncient) - C(onstructed) - E(xtinct) - H(istorical) - L(iving) - S(pecial)static final String
User ids -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the 2-letter (ISO 639-1) codeGet the 639-2 bibliographic codegetId()
Get the alpha-3 (ISO 639-3) code for this language entry.getName()
Get language reference namegetProperty
(String name) Find and retrieve the value of a property.getScope()
Get the language scopeGet the 639-2 terminology codegetType()
Get lanugage typeReturns the custom User ID added to this languagetoString()
-
Field Details
-
ID_639_3
639-3 code- See Also:
-
ID_639_2B
639-2 bibliographic- See Also:
-
ID_639_2T
639-2 terminology- See Also:
-
ID_639_1
639-1 code- See Also:
-
SCOPE
One of: - I(ndividual) - M(acrolanguage) - S(pecial)- See Also:
-
TYPE
One of: - A(ncient) - C(onstructed) - E(xtinct) - H(istorical) - L(iving) - S(pecial)- See Also:
-
REF_NAME
Reference language name- See Also:
-
COMMENT
Comments- See Also:
-
USER_ID
User ids- See Also:
-
-
Constructor Details
-
LanguageEntry
public LanguageEntry()Default constructor -
LanguageEntry
-
-
Method Details
-
getId
Get the alpha-3 (ISO 639-3) code for this language entry.- Returns:
- the type of this entry, or null if it is unknown
-
getUserId
Returns the custom User ID added to this language- Returns:
- User ID or empty string
-
getBibliographicId
Get the 639-2 bibliographic code -
getTerminologyId
Get the 639-2 terminology code -
getAlpha2Id
Get the 2-letter (ISO 639-1) code -
getScope
Get the language scope -
getType
Get lanugage type -
getName
Get language reference name -
getProperty
Find and retrieve the value of a property.- Parameters:
name
- the name of the property to check for- Returns:
- the value of the property if it exists, null otherwise
-
toString
-