public class Range extends AttributeableEntity
Constructor and Description |
---|
Range() |
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.
|
Number |
getMax()
Get the max value
|
Number |
getMin()
Get the min value
|
void |
setMax(Number max)
Set the max value
|
void |
setMin(Number min)
Set the min value
|
String |
toString() |
getAttributes, getBoolean, getInteger, getNumber, getString, getString, getStringArray, setDefaults, setString, setStringArray, toJSONObject
public void clear()
clear
in class AttributeableEntity
public void fromJSONObject(javax.json.JsonObject jsonObj) throws IOException
clear()
fromJSONObject
in class AttributeableEntity
jsonObj
- The JSON ObjectIOException
- If JSON parsing failspublic Number getMin()
null
public void setMin(Number min)
min
- the min to setpublic Number getMax()
null
public void setMax(Number max)
max
- the max to setprotected javax.json.JsonObjectBuilder createJson() throws IOException
createJson
in class AttributeableEntity
IOException
- If generating the JSON failsCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.