Class Option


  • public class Option
    extends DescribableEntity
    Option for a property value This class is not thread safe.
    • Constructor Detail

      • Option

        public Option()
    • Method Detail

      • clear

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

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

        public String getValue()
        Get the value for the option
        Returns:
        the value or null
      • setValue

        public void setValue​(String value)
        Set the value for the option
        Parameters:
        value - the value to set