Package nzilbb.labbcat.model
Class Role
java.lang.Object
nzilbb.labbcat.model.Role
User role record.
- Author:
- Robert Fromont robert@fromont.net.nz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter fordescription
: Description of the role.Getter forroleId
: Role name/ID.setDescription
(String newDescription) Setter fordescription
: Description of the role.Setter forroleId
: Role name/ID.javax.json.JsonObject
toJson()
Serializes the object to JSON.
-
Constructor Details
-
Role
public Role()Default constructor. -
Role
public Role(javax.json.JsonObject json) Constructor from JSON.- Parameters:
json
- A JSON representation of the object to construct.
-
-
Method Details
-
getRoleId
Getter forroleId
: Role name/ID.- Returns:
- Role name/ID.
-
setRoleId
Setter forroleId
: Role name/ID.- Parameters:
newRoleId
- Role name/ID.- Returns:
- A reference to this object, so that setters can be chained.
-
getDescription
Getter fordescription
: Description of the role.- Returns:
- Description of the role.
-
setDescription
Setter fordescription
: Description of the role.- Parameters:
newDescription
- Description of the role.- Returns:
- A reference to this object, so that setters can be chained.
-
toJson
public javax.json.JsonObject toJson()Serializes the object to JSON.- Returns:
- A JSON serialization of the object.
-