Package nzilbb.labbcat.model
Class Category
- java.lang.Object
-
- nzilbb.labbcat.model.Category
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Getter forcategory: The name/id of the category.StringgetClassId()Getter forclassId: What kind of attributes are categorised - "transcript", "speaker", or "layer".StringgetDescription()Getter fordescription: The description of the category.intgetDisplayOrder()Getter fordisplayOrder: Where the category appears among other categories.CategorysetCategory(String newCategory)Setter forcategory: The name/id of the category.CategorysetClassId(String newClassId)Setter forclassId: What kind of attributes are categorised - "transcript", "speaker", or "layer".CategorysetDescription(String newDescription)Setter fordescription: The description of the category.CategorysetDisplayOrder(int newDisplayOrder)Setter fordisplayOrder: Where the category appears among other categories.javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
Method Detail
-
getClassId
public String 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
public Category setClassId(String newClassId)
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
public String getCategory()
Getter forcategory: The name/id of the category.- Returns:
- The name/id of the category.
-
setCategory
public Category setCategory(String newCategory)
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
public String getDescription()
Getter fordescription: The description of the category.- Returns:
- The description of the category.
-
setDescription
public Category setDescription(String newDescription)
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
public Category setDisplayOrder(int newDisplayOrder)
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.
-
-