Package com.basistech.rosette.dm
Class TransliterationResults
java.lang.Object
com.basistech.rosette.dm.BaseAttribute
com.basistech.rosette.dm.TransliterationResults
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.basistech.rosette.dm.BaseAttribute
extendedProperties
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransliterationResults
(Map<com.basistech.util.LanguageCode, Transliteration> results, Map<String, Object> extendedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionMap<com.basistech.util.LanguageCode,
Transliteration> Gets all theTransliteration
s insidethis
getTransliteration
(com.basistech.util.LanguageCode code) Gets theTransliteration
for the givenLanguageCode
.getTransliterationInScript
(com.basistech.util.LanguageCode code, com.basistech.util.ISO15924 script) Gets the actual transliteration for the givenLanguageCode
in the givenscript
com.google.common.base.MoreObjects.ToStringHelper
Methods inherited from class com.basistech.rosette.dm.BaseAttribute
getExtendedProperties, listOrNull, setExtendedProperty, toString
-
Constructor Details
-
TransliterationResults
protected TransliterationResults(Map<com.basistech.util.LanguageCode, Transliteration> results, Map<String, Object> extendedAttributes)
-
-
Method Details
-
getResults
Gets all theTransliteration
s insidethis
- Returns:
- An immutable view of the transliterations.
-
getTransliteration
Gets theTransliteration
for the givenLanguageCode
.- Parameters:
code
- The code to check- Returns:
- The transliteration, or
null
if there isn't one with the given language code.
-
getTransliterationInScript
public String getTransliterationInScript(com.basistech.util.LanguageCode code, com.basistech.util.ISO15924 script) Gets the actual transliteration for the givenLanguageCode
in the givenscript
- Parameters:
code
- The language code to checkscript
- The script to check- Returns:
- The transliteration, or null if one doesn't exist matching the given criteria.
-
toStringHelper
public com.google.common.base.MoreObjects.ToStringHelper toStringHelper()- Overrides:
toStringHelper
in classBaseAttribute
-