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 |
---|---|
String |
getDescriptionHtml()
Gets the HTML description.
|
String |
getKey()
Gets the key.
|
String |
getName()
Gets the name.
|
HashMap<String,Object> |
getValues()
Gets the values.
|
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 |
withAppData(HashMap<String,String> appData)
With application data.
|
Option |
withDescriptionHtml(String descriptionHtml)
With description html.
|
Option |
withKey(String key)
With key.
|
Option |
withName(String name)
With name.
|
Option |
withValue(String name,
Object value)
With value.
|
Option |
withValues(HashMap<String,Object> values)
With values.
|
equals, hashCode, toString
public Option()
public Option(String key, String name)
key
- the keyname
- the namepublic 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 withAppData(HashMap<String,String> appData)
appData
- the app datapublic Option withDescriptionHtml(String descriptionHtml)
descriptionHtml
- the description htmlpublic Option withName(String name)
name
- the namepublic Option withValue(String name, Object value)
name
- the namevalue
- the valueCopyright © 2015–2016. All rights reserved.