public class Option extends GenericModel
| Constructor and Description | 
|---|
| Option()Instantiates a new option. | 
| Option(String key,
      String name)Instantiates a new option. | 
| Option(String key,
      String name,
      HashMap<String,Object> values,
      String descriptionHtml)Instantiates a new option. | 
| Modifier and Type | Method and Description | 
|---|---|
| Option | appData(HashMap<String,String> appData)Sets the application data. | 
| Option | descriptionHtml(String descriptionHtml)Sets the HTML description . | 
| String | getDescriptionHtml()Gets the HTML description. | 
| String | getKey()Gets the key. | 
| String | getName()Gets the name. | 
| HashMap<String,Object> | getValues()Gets the values. | 
| Option | key(String key)Sets the key. | 
| Option | name(String name)Sets the name. | 
| void | setDescriptionHtml(String descriptionHtml)Sets the description html. | 
| void | setKey(String key)Sets the key. | 
| void | setName(String name)Sets the name. | 
| void | setValues(HashMap<String,Object> values)Sets the values. | 
| Option | value(String name,
     Object value)Sets value. | 
| Option | values(HashMap<String,Object> values)Sets values. | 
equals, hashCode, toStringpublic Option()
public Option(String key, String name)
key - the keyname - the namepublic Option appData(HashMap<String,String> appData)
appData - the app datapublic Option descriptionHtml(String descriptionHtml)
descriptionHtml - the HTML descriptionpublic String getDescriptionHtml()
public String getKey()
public String getName()
public void setDescriptionHtml(String descriptionHtml)
descriptionHtml - The description_htmlpublic void setKey(String key)
key - The keypublic void setName(String name)
name - The namepublic void setValues(HashMap<String,Object> values)
values - The valuespublic Option value(String name, Object value)
name - the namevalue - the valueCopyright © 2015–2016 IBM Watson. All rights reserved.