Package ca.phon.util

Class LanguageEntry

java.lang.Object
ca.phon.util.LanguageEntry

public class LanguageEntry extends Object
An entry in the ISO-639-3 code set. May also include custom userIds.
  • Field Details

  • Constructor Details

    • LanguageEntry

      public LanguageEntry()
      Default constructor
    • LanguageEntry

      public LanguageEntry(Map<String,String> props)
  • Method Details

    • getId

      public String 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

      public String getUserId()
      Returns the custom User ID added to this language
      Returns:
      User ID or empty string
    • getBibliographicId

      public String getBibliographicId()
      Get the 639-2 bibliographic code
    • getTerminologyId

      public String getTerminologyId()
      Get the 639-2 terminology code
    • getAlpha2Id

      public String getAlpha2Id()
      Get the 2-letter (ISO 639-1) code
    • getScope

      public String getScope()
      Get the language scope
    • getType

      public String getType()
      Get lanugage type
    • getName

      public String getName()
      Get language reference name
    • getProperty

      public String getProperty(String name)
      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

      public String toString()
      Overrides:
      toString in class Object