public static class SAORelation.RelationObject extends GenericModel
Constructor and Description |
---|
RelationObject() |
Modifier and Type | Method and Description |
---|---|
Entity |
getEntity()
Gets the entity.
|
List<Keyword> |
getKeywords()
Gets the keywords.
|
Sentiment |
getSentiment()
Gets the sentiment.
|
Sentiment |
getSentimentFromSubject()
Gets the sentiment from subject.
|
String |
getText()
Gets the text.
|
void |
setEntity(Entity entity)
Sets the entity.
|
void |
setKeywords(List<Keyword> keywords)
Sets the keywords.
|
void |
setSentiment(Sentiment sentiment)
Sets the sentiment.
|
void |
setSentimentFromSubject(Sentiment sentimentFromSubject)
Sets the sentiment from subject.
|
void |
setText(String text)
Sets the text.
|
equals, hashCode, toString
public Entity getEntity()
public Sentiment getSentiment()
public Sentiment getSentimentFromSubject()
public String getText()
public void setEntity(Entity entity)
entity
- the new entitypublic void setKeywords(List<Keyword> keywords)
keywords
- the keywords to setpublic void setSentiment(Sentiment sentiment)
sentiment
- The sentimentpublic void setSentimentFromSubject(Sentiment sentimentFromSubject)
sentimentFromSubject
- the sentimentFromSubject to setpublic void setText(String text)
text
- The textCopyright © 2015–2016 IBM Watson. All rights reserved.