public class Option extends DescribableEntity
Constructor and Description |
---|
Option() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the object and reset to defaults
|
protected javax.json.JsonObjectBuilder |
createJson()
Convert this object into JSON
|
void |
fromJSONObject(javax.json.JsonObject jsonObj)
Extract the metadata from the JSON object.
|
String |
getValue()
Get the value for the option
|
void |
setValue(String value)
Set the value for the option
|
getDeprecated, getDescription, getEnforceOn, getSince, getTitle, setDeprecated, setDescription, setEnforceOn, setSince, setTitle
getAttributes, getBoolean, getInteger, getNumber, getString, getString, getStringArray, setDefaults, setString, setStringArray, toJSONObject
public void clear()
clear
in class DescribableEntity
public void fromJSONObject(javax.json.JsonObject jsonObj) throws IOException
clear()
fromJSONObject
in class DescribableEntity
jsonObj
- The JSON ObjectIOException
- If JSON parsing failspublic String getValue()
null
public void setValue(String value)
value
- the value to setprotected javax.json.JsonObjectBuilder createJson() throws IOException
createJson
in class DescribableEntity
IOException
- If generating the JSON failsCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.