Package nzilbb.labbcat.model
Class Category
java.lang.Object
nzilbb.labbcat.model.Category
- Direct Known Subclasses:
Project
Attribute category record.
- Author:
- Robert Fromont robert@fromont.net.nz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter forcategory
: The name/id of the category.Getter forclassId
: What kind of attributes are categorised - "transcript", "speaker", or "layer".Getter fordescription
: The description of the category.int
Getter fordisplayOrder
: Where the category appears among other categories.setCategory
(String newCategory) Setter forcategory
: The name/id of the category.setClassId
(String newClassId) Setter forclassId
: What kind of attributes are categorised - "transcript", "speaker", or "layer".setDescription
(String newDescription) Setter fordescription
: The description of the category.setDisplayOrder
(int newDisplayOrder) Setter fordisplayOrder
: Where the category appears among other categories.javax.json.JsonObject
toJson()
Serializes the object to JSON.
-
Constructor Details
-
Category
public Category()Default constructor. -
Category
public Category(javax.json.JsonObject json) Constructor from JSON.- Parameters:
json
- JSON-encoded version of category.
-
-
Method Details
-
getClassId
Getter forclassId
: What kind of attributes are categorised - "transcript", "speaker", or "layer".- Returns:
- What kind of attributes are categorised - "transcript", "speaker", or "layer".
-
setClassId
Setter forclassId
: What kind of attributes are categorised - "transcript", "speaker", or "layer".- Parameters:
newClassId
- What kind of attributes are categorised - "transcript", "speaker", or "layer".- Returns:
- A reference to this object, so that setters can be chained.
-
getCategory
Getter forcategory
: The name/id of the category.- Returns:
- The name/id of the category.
-
setCategory
Setter forcategory
: The name/id of the category.- Parameters:
newCategory
- The name/id of the category.- Returns:
- A reference to this object, so that setters can be chained.
-
getDescription
Getter fordescription
: The description of the category.- Returns:
- The description of the category.
-
setDescription
Setter fordescription
: The description of the category.- Parameters:
newDescription
- The description of the category.- Returns:
- A reference to this object, so that setters can be chained.
-
getDisplayOrder
public int getDisplayOrder()Getter fordisplayOrder
: Where the category appears among other categories.- Returns:
- Where the category appears among other categories.
-
setDisplayOrder
Setter fordisplayOrder
: Where the category appears among other categories.- Parameters:
newDisplayOrder
- Where the category appears among other categories.- 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.
-