Skip to content

Commit e1ab4b8

Browse files
Merge pull request #239 from GrapeBaBa/master
[Alchemy] Added set/get method for sentiment field #232.
2 parents 5c11dc6 + f66d84d commit e1ab4b8

File tree

1 file changed

+18
-0
lines changed
  • src/main/java/com/ibm/watson/developer_cloud/alchemy/v1/model

1 file changed

+18
-0
lines changed

src/main/java/com/ibm/watson/developer_cloud/alchemy/v1/model/Article.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ public List<Entity> getEntities() {
6262
return entities;
6363
}
6464

65+
/**
66+
* Gets the sentiment.
67+
*
68+
* @return The sentiment
69+
*/
70+
public Sentiment getSentiment() {
71+
return sentiment;
72+
}
73+
6574
/**
6675
* Gets the taxonomy.
6776
*
@@ -89,6 +98,15 @@ public void setEntities(List<Entity> entities) {
8998
this.entities = entities;
9099
}
91100

101+
/**
102+
* Sets the sentiment.
103+
*
104+
* @param sentiment The sentiment
105+
*/
106+
public void setSentiment(Sentiment sentiment) {
107+
this.sentiment = sentiment;
108+
}
109+
92110
/**
93111
* Sets the taxonomy.
94112
*

0 commit comments

Comments
 (0)