public class DocumentEmotion extends AlchemyLanguageGenericModel
AlchemyLanguage.getEmotion(java.util.Map)
.Modifier and Type | Class and Description |
---|---|
static class |
DocumentEmotion.Emotion
The extracted emotion from
AlchemyLanguage.getEmotion(java.util.Map) . |
Constructor and Description |
---|
DocumentEmotion() |
Modifier and Type | Method and Description |
---|---|
DocumentEmotion.Emotion |
getEmotion()
Gets the emotion.
|
java.lang.String |
getText()
Gets the text.
|
void |
setEmotion(DocumentEmotion.Emotion emotion)
Sets the emotion.
|
void |
setText(java.lang.String text)
Sets the text.
|
getLanguage, getUrl, setLanguage, setUrl
getTotalTransactions, setTotalTransactions
equals, hashCode, toString
public DocumentEmotion.Emotion getEmotion()
public java.lang.String getText()
public void setEmotion(DocumentEmotion.Emotion emotion)
emotion
- the new emotionpublic void setText(java.lang.String text)
text
- the new text