Class ConfigurableEntityAddition
- java.lang.Object
-
- org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
-
- org.apache.sling.feature.extension.apiregions.api.config.ConfigurableEntityAddition
-
- Direct Known Subclasses:
ConfigurationDescriptionAddition
,FactoryConfigurationDescriptionAddition
public abstract class ConfigurableEntityAddition extends AttributeableEntity
A description of an OSGi configuration addition This class is not thread safe.- Since:
- 1.8
-
-
Constructor Summary
Constructors Constructor Description ConfigurableEntityAddition()
Create a new addition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear the object and reset to defaultsprotected javax.json.JsonObjectBuilder
createJson()
Convert this object into JSONvoid
fromJSONObject(javax.json.JsonObject jsonObj)
Extract the metadata from the JSON object.Map<String,PropertyDescriptionAddition>
getPropertyDescriptionAdditions()
Get the property additions-
Methods inherited from class org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
getAttributes, getBoolean, getInteger, getNumber, getString, getString, getStringArray, setDefaults, setString, setStringArray, toJSONObject
-
-
-
-
Method Detail
-
getPropertyDescriptionAdditions
public Map<String,PropertyDescriptionAddition> getPropertyDescriptionAdditions()
Get the property additions- Returns:
- The map of property additions
-
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
-
createJson
protected javax.json.JsonObjectBuilder createJson() throws IOException
Convert this object into JSON- Overrides:
createJson
in classAttributeableEntity
- Returns:
- The json object builder
- Throws:
IOException
- If generating the JSON fails
-
-