Package nzilbb.labbcat.model
Class ElicitationTaskResource
- java.lang.Object
-
- nzilbb.labbcat.model.ElicitationTaskResource
-
public class ElicitationTaskResource extends Object
Localization resource for a participant-facing message in an elicitation task.- Author:
- Robert Fromont robert@fromont.nz
-
-
Constructor Summary
Constructors Constructor Description ElicitationTaskResource()Default constructor.ElicitationTaskResource(javax.json.JsonObject json)Constructor from JSON.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHelp()Getter forhelp: A description of the message to help administrators/translators understand the purpose of the resource.StringgetMessage()Getter formessage: The participant-facing message.StringgetResourceId()Getter forresourceId: The name of the resource.intgetTaskId()Getter fortaskId: The identifier of the elicitation task the resource belongs to.ElicitationTaskResourcesetHelp(String newHelp)Setter forhelp: A description of the message to help administrators/translators understand the purpose of the resource.ElicitationTaskResourcesetMessage(String newMessage)Setter formessage: The participant-facing message.ElicitationTaskResourcesetResourceId(String newResourceId)Setter forresourceId: The name of the resource.ElicitationTaskResourcesetTaskId(int newTaskId)Setter fortaskId: The identifier of the elicitation task the resource belongs to.javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
Method Detail
-
getTaskId
public int getTaskId()
Getter fortaskId: 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 fortaskId: 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 forresourceId: The name of the resource.- Returns:
- The name of the resource.
-
setResourceId
public ElicitationTaskResource setResourceId(String newResourceId)
Setter forresourceId: The name of the resource.- Parameters:
newResourceId- The name of the resource.
-
getHelp
public String getHelp()
Getter forhelp: 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 forhelp: 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 formessage: The participant-facing message.- Returns:
- The participant-facing message.
-
setMessage
public ElicitationTaskResource setMessage(String newMessage)
Setter formessage: 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.
-
-