Class ElicitationTaskAttributeOption


  • public class ElicitationTaskAttributeOption
    extends Object
    A participant-facing option for the value of an attribute elicited during an elicitation task.
    Author:
    Robert Fromont robert@fromont.nz
    • Constructor Detail

      • ElicitationTaskAttributeOption

        public ElicitationTaskAttributeOption()
        Default constructor.
      • ElicitationTaskAttributeOption

        public ElicitationTaskAttributeOption​(javax.json.JsonObject json)
        Constructor from JSON.
        Parameters:
        json - A JSON representation of the object to construct.
    • Method Detail

      • getTaskId

        public int getTaskId()
        Getter for taskId: The identifier of the elicitation task the option belongs to.
        Returns:
        The identifier of the elicitation task the option belongs to.
      • setTaskId

        public ElicitationTaskAttributeOption setTaskId​(int newTaskId)
        Setter for taskId: The identifier of the elicitation task the option belongs to.
        Parameters:
        newTaskId - The identifier of the elicitation task the option belongs to.
      • getAttribute

        public String getAttribute()
        Getter for attribute: The name of the attribute the option is for.
        Returns:
        The name of the attribute the option is for.
      • setAttribute

        public ElicitationTaskAttributeOption setAttribute​(String newAttribute)
        Setter for attribute: The name of the attribute the option is for.
        Parameters:
        newAttribute - The name of the attribute the option is for.
      • getValue

        public String getValue()
        Getter for value: The attribute value that the option selects.
        Returns:
        The attribute value that the option selects.
      • setValue

        public ElicitationTaskAttributeOption setValue​(String newValue)
        Setter for value: The attribute value that the option selects.
        Parameters:
        newValue - The attribute value that the option selects.
      • getDescription

        public String getDescription()
        Getter for description: The participant-facing label of the option.
        Returns:
        The participant-facing label of the option.
      • setDescription

        public ElicitationTaskAttributeOption setDescription​(String newDescription)
        Setter for description: The participant-facing label of the option.
        Parameters:
        newDescription - The participant-facing label of the option.
      • toJson

        public javax.json.JsonObject toJson()
        Serializes the object to JSON.
        Returns:
        A JSON serialization of the object.