Class Transliteration

java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Transliteration
All Implemented Interfaces:
Serializable

public final class Transliteration extends BaseAttribute
See Also:
  • Constructor Details

    • Transliteration

      protected Transliteration(Map<com.basistech.util.ISO15924,String> scriptMap, Map<String,Object> extendedAttributes)
  • Method Details

    • get

      public String get(com.basistech.util.ISO15924 script)
      Gets the transliterated text in the given script
      Parameters:
      script - The script to look for.
      Returns:
      The transliterated text, or null if no mapping was found.
    • of

      public static Transliteration of(com.basistech.util.ISO15924 script, String value)
      Convenience method to create a transliteration with the given script and value.
      Parameters:
      script - The script the transliteration is in
      value - The transliterated text.
      Returns:
      A newly built immutable Transliteration containing the given transliterated text
    • listScripts

      public Set<com.basistech.util.ISO15924> listScripts()
      Lists all the scripts this transliteration has text for.
      Returns:
      An immutable set of all the scripts.
    • getAll

      public Map<com.basistech.util.ISO15924,String> getAll()
      Gives all the mappings that this transliteration has.
      Returns:
      An immutable map containing the transliterations
    • toStringHelper

      public com.google.common.base.MoreObjects.ToStringHelper toStringHelper()
      Overrides:
      toStringHelper in class BaseAttribute