Class Range
- java.lang.Object
-
- org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
-
- org.apache.sling.feature.extension.apiregions.api.config.Range
-
public class Range extends AttributeableEntity
A numerical value range This class is not thread safe.
-
-
Constructor Summary
Constructors Constructor Description Range()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear the object and reset to defaultsvoid
fromJSONObject(javax.json.JsonObject jsonObj)
Extract the metadata from the JSON object.Number
getMax()
Get the max valueNumber
getMin()
Get the min valuevoid
setMax(Number max)
Set the max valuevoid
setMin(Number min)
Set the min valueString
toString()
-
Methods inherited from class org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
getAttributes, toJSONObject
-
-
-
-
Method Detail
-
clear
public void clear()
Clear the object and reset to defaults- Overrides:
clear
in classAttributeableEntity
-
fromJSONObject
public void fromJSONObject(javax.json.JsonObject jsonObj) throws IOException
Extract the metadata from the JSON object. This method first callsclear()
- Overrides:
fromJSONObject
in classAttributeableEntity
- Parameters:
jsonObj
- The JSON Object- Throws:
IOException
- If JSON parsing fails
-
getMin
public Number getMin()
Get the min value- Returns:
- the min or
null
-
setMin
public void setMin(Number min)
Set the min value- Parameters:
min
- the min to set
-
getMax
public Number getMax()
Get the max value- Returns:
- the max or
null
-
setMax
public void setMax(Number max)
Set the max value- Parameters:
max
- the max to set
-
-