Class ElicitationTaskResource


  • public class ElicitationTaskResource
    extends Object
    Localization resource for a participant-facing message in an elicitation task.
    Author:
    Robert Fromont robert@fromont.nz
    • Constructor Detail

      • ElicitationTaskResource

        public ElicitationTaskResource()
        Default constructor.
      • ElicitationTaskResource

        public ElicitationTaskResource​(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 resource belongs to.
        Returns:
        The identifier of the elicitation task the resource belongs to.
      • setTaskId

        public ElicitationTaskResource setTaskId​(int newTaskId)
        Setter for taskId: The identifier of the elicitation task the resource belongs to.
        Parameters:
        newTaskId - The identifier of the elicitation task the resource belongs to.
      • getResourceId

        public String getResourceId()
        Getter for resourceId: The name of the resource.
        Returns:
        The name of the resource.
      • setResourceId

        public ElicitationTaskResource setResourceId​(String newResourceId)
        Setter for resourceId: The name of the resource.
        Parameters:
        newResourceId - The name of the resource.
      • getHelp

        public String getHelp()
        Getter for help: A description of the message to help administrators/translators understand the purpose of the resource.
        Returns:
        A description of the message to help administrators/translators understand the purpose of the resource.
      • setHelp

        public ElicitationTaskResource setHelp​(String newHelp)
        Setter for help: A description of the message to help administrators/translators understand the purpose of the resource.
        Parameters:
        newHelp - A description of the message to help administrators/translators understand the purpose of the resource.
      • getMessage

        public String getMessage()
        Getter for message: The participant-facing message.
        Returns:
        The participant-facing message.
      • setMessage

        public ElicitationTaskResource setMessage​(String newMessage)
        Setter for message: The participant-facing message.
        Parameters:
        newMessage - The participant-facing message.
      • toJson

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