Class PropertyDescriptionAddition

java.lang.Object
org.apache.sling.feature.extension.apiregions.api.config.AttributeableEntity
org.apache.sling.feature.extension.apiregions.api.config.PropertyDescriptionAddition

public class PropertyDescriptionAddition extends AttributeableEntity
Instances of this class represent an addition to a configuration property This class is not thread safe.
Since:
1.8
  • Constructor Details

    • PropertyDescriptionAddition

      public PropertyDescriptionAddition()
      Create a new description
  • Method Details

    • clear

      public void clear()
      Clear the object and reset to defaults
      Overrides:
      clear in class AttributeableEntity
    • fromJSONObject

      public void fromJSONObject(jakarta.json.JsonObject jsonObj) throws IOException
      Extract the metadata from the JSON object. This method first calls clear()
      Overrides:
      fromJSONObject in class AttributeableEntity
      Parameters:
      jsonObj - The JSON Object
      Throws:
      IOException - If JSON parsing fails
    • createJson

      protected jakarta.json.JsonObjectBuilder createJson() throws IOException
      Convert this object into JSON
      Overrides:
      createJson in class AttributeableEntity
      Returns:
      The json object builder
      Throws:
      IOException - If generating the JSON fails
    • getIncludes

      public String[] getIncludes()
      Get the includes
      Returns:
      the includes or null
    • setIncludes

      public void setIncludes(String[] includes)
      Set the includes
      Parameters:
      includes - the includes to set