Package nzilbb.labbcat.model
Class ElicitationTaskAttributeOption
- java.lang.Object
-
- nzilbb.labbcat.model.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 Summary
Constructors Constructor Description ElicitationTaskAttributeOption()Default constructor.ElicitationTaskAttributeOption(javax.json.JsonObject json)Constructor from JSON.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute()Getter forattribute: The name of the attribute the option is for.StringgetDescription()Getter fordescription: The participant-facing label of the option.intgetTaskId()Getter fortaskId: The identifier of the elicitation task the option belongs to.StringgetValue()Getter forvalue: The attribute value that the option selects.ElicitationTaskAttributeOptionsetAttribute(String newAttribute)Setter forattribute: The name of the attribute the option is for.ElicitationTaskAttributeOptionsetDescription(String newDescription)Setter fordescription: The participant-facing label of the option.ElicitationTaskAttributeOptionsetTaskId(int newTaskId)Setter fortaskId: The identifier of the elicitation task the option belongs to.ElicitationTaskAttributeOptionsetValue(String newValue)Setter forvalue: The attribute value that the option selects.javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
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 fortaskId: 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 fortaskId: 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 forattribute: 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 forattribute: 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 forvalue: The attribute value that the option selects.- Returns:
- The attribute value that the option selects.
-
setValue
public ElicitationTaskAttributeOption setValue(String newValue)
Setter forvalue: The attribute value that the option selects.- Parameters:
newValue- The attribute value that the option selects.
-
getDescription
public String getDescription()
Getter fordescription: The participant-facing label of the option.- Returns:
- The participant-facing label of the option.
-
setDescription
public ElicitationTaskAttributeOption setDescription(String newDescription)
Setter fordescription: 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.
-
-