public class Option extends GenericModel
Constructor and Description |
---|
Option()
Instantiates a new option.
|
Option(java.lang.String key,
java.lang.String name)
Instantiates a new option.
|
Option(java.lang.String key,
java.lang.String name,
java.util.HashMap<java.lang.String,java.lang.Object> values,
java.lang.String descriptionHtml)
Instantiates a new option.
|
Modifier and Type | Method and Description |
---|---|
Option |
appData(java.util.HashMap<java.lang.String,java.lang.String> appData)
Sets the application data.
|
Option |
descriptionHtml(java.lang.String descriptionHtml)
Sets the HTML description .
|
java.lang.String |
getDescriptionHtml()
Gets the HTML description.
|
java.lang.String |
getKey()
Gets the key.
|
java.lang.String |
getName()
Gets the name.
|
java.util.HashMap<java.lang.String,java.lang.Object> |
getValues()
Gets the values.
|
Option |
key(java.lang.String key)
Sets the key.
|
Option |
name(java.lang.String name)
Sets the name.
|
void |
setDescriptionHtml(java.lang.String descriptionHtml)
Sets the description html.
|
void |
setKey(java.lang.String key)
Sets the key.
|
void |
setName(java.lang.String name)
Sets the name.
|
void |
setValues(java.util.HashMap<java.lang.String,java.lang.Object> values)
Sets the values.
|
Option |
value(java.lang.String name,
java.lang.Object value)
Sets value.
|
Option |
values(java.util.HashMap<java.lang.String,java.lang.Object> values)
Sets values.
|
equals, hashCode, toString
public Option()
public Option(java.lang.String key, java.lang.String name)
key
- the keyname
- the namepublic Option(java.lang.String key, java.lang.String name, java.util.HashMap<java.lang.String,java.lang.Object> values, java.lang.String descriptionHtml)
key
- the keyname
- the namevalues
- the valuesdescriptionHtml
- the description htmlpublic Option appData(java.util.HashMap<java.lang.String,java.lang.String> appData)
appData
- the app datapublic Option descriptionHtml(java.lang.String descriptionHtml)
descriptionHtml
- the HTML descriptionpublic java.lang.String getDescriptionHtml()
public java.lang.String getKey()
public java.lang.String getName()
public java.util.HashMap<java.lang.String,java.lang.Object> getValues()
public Option key(java.lang.String key)
key
- the keypublic Option name(java.lang.String name)
name
- the namepublic void setDescriptionHtml(java.lang.String descriptionHtml)
descriptionHtml
- The description_htmlpublic void setKey(java.lang.String key)
key
- The keypublic void setName(java.lang.String name)
name
- The namepublic void setValues(java.util.HashMap<java.lang.String,java.lang.Object> values)
values
- The valuespublic Option value(java.lang.String name, java.lang.Object value)
name
- the namevalue
- the valuepublic Option values(java.util.HashMap<java.lang.String,java.lang.Object> values)
values
- the values