public class CustomTranslation extends GenericModel
"Sunday" as translation for "Sun."), an International
Phonetic Alphabet (IPA) representation. A Japanese translation can also specify a part of speech.| Modifier and Type | Class and Description |
|---|---|
static class |
CustomTranslation.PartOfSpeech
The Enum PartOfSpeech for Japanese custom translations only.
|
| Constructor and Description |
|---|
CustomTranslation()
Instantiates a new custom translation.
|
CustomTranslation(java.lang.String word,
java.lang.String translation)
Creates a new CustomTranslation without a part of speech.
|
CustomTranslation(java.lang.String word,
java.lang.String translation,
CustomTranslation.PartOfSpeech partOfSpeech)
Creates a new CustomTranslation with a part of speech.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPartOfSpeech()
Returns the part of speech.
|
java.lang.String |
getTranslation()
Returns the custom translation.
|
java.lang.String |
getWord()
Returns the original word.
|
void |
setPartOfSpeech(java.lang.String partOfSpeech)
Sets the original part of speech.
|
void |
setTranslation(java.lang.String translation)
Sets the custom translation.
|
void |
setWord(java.lang.String word)
Sets the original word.
|
equals, hashCode, toStringpublic CustomTranslation()
public CustomTranslation(java.lang.String word,
java.lang.String translation)
word - the wordtranslation - the custom translationpublic CustomTranslation(java.lang.String word,
java.lang.String translation,
CustomTranslation.PartOfSpeech partOfSpeech)
word - the wordtranslation - the custom translationpartOfSpeech - the part of speechpublic java.lang.String getWord()
public void setWord(java.lang.String word)
word - the wordpublic java.lang.String getTranslation()
public void setTranslation(java.lang.String translation)
translation - the translationpublic java.lang.String getPartOfSpeech()
public void setPartOfSpeech(java.lang.String partOfSpeech)
partOfSpeech - the part of speech