public class ToneCategory extends GenericModel
Constructor and Description |
---|
ToneCategory() |
Modifier and Type | Method and Description |
---|---|
void |
addTone(ToneScore score)
Adds the tone.
|
String |
getId()
Gets the id.
|
String |
getName()
Gets the name.
|
List<ToneScore> |
getTones()
Gets the tones.
|
void |
setId(String id)
Sets the id.
|
void |
setName(String name)
Sets the name.
|
void |
setTones(List<ToneScore> tones)
Sets the tones.
|
equals, hashCode, toString
public void addTone(ToneScore score)
score
- the scorepublic String getId()
public String getName()
public void setId(String id)
id
- the new idpublic void setName(String name)
name
- the new nameCopyright © 2015–2016 IBM Watson. All rights reserved.