Class Category

java.lang.Object
nzilbb.labbcat.model.Category
Direct Known Subclasses:
Project

public class Category extends Object
Attribute category record.
Author:
Robert Fromont robert@fromont.net.nz
  • 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

      public String getClassId()
      Getter for classId: 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 for classId: 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 for category: The name/id of the category.
      Returns:
      The name/id of the category.
    • setCategory

      public Category setCategory(String newCategory)
      Setter for category: 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 for description: The description of the category.
      Returns:
      The description of the category.
    • setDescription

      public Category setDescription(String newDescription)
      Setter for description: 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 for displayOrder: Where the category appears among other categories.
      Returns:
      Where the category appears among other categories.
    • setDisplayOrder

      public Category setDisplayOrder(int newDisplayOrder)
      Setter for displayOrder: 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.