Package com.basistech.rosette.dm
Class Transliteration
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.Transliteration
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(com.basistech.util.ISO15924 script) Gets the transliterated text in the given scriptgetAll()Gives all the mappings that this transliteration has.Set<com.basistech.util.ISO15924>Lists all the scripts this transliteration has text for.static TransliterationConvenience method to create a transliteration with the given script and value.com.google.common.base.MoreObjects.ToStringHelperMethods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
Transliteration
-
-
Method Details
-
get
Gets the transliterated text in the given script- Parameters:
script- The script to look for.- Returns:
- The transliterated text, or
nullif no mapping was found.
-
of
Convenience method to create a transliteration with the given script and value.- Parameters:
script- The script the transliteration is invalue- The transliterated text.- Returns:
- A newly built immutable Transliteration containing the given transliterated text
-
listScripts
Lists all the scripts this transliteration has text for.- Returns:
- An immutable set of all the scripts.
-
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:
toStringHelperin classBaseAttribute
-