public class CustomTranslation extends GenericModel
"Sunday" as translation for "Sun."), an International
Phonetic Alphabet (IPA) representation.| Constructor and Description |
|---|
CustomTranslation()
Instantiates a new custom translation.
|
CustomTranslation(String word,
String translation)
Creates a new CustomTranslation.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTranslation()
Returns the custom translation.
|
String |
getWord()
Returns the original word.
|
void |
setTranslation(String translation)
Sets the custom translation.
|
void |
setWord(String word)
Sets the original word.
|
equals, hashCode, toStringpublic CustomTranslation()
public String getWord()
public void setWord(String word)
word - the wordpublic String getTranslation()
public void setTranslation(String translation)
translation - the translationCopyright © 2015–2016 IBM Watson. All rights reserved.