Class Project

java.lang.Object
nzilbb.labbcat.model.Category
nzilbb.labbcat.model.Project

@Deprecated(since="1.2.0", forRemoval=true) public class Project extends Category
Deprecated, for removal: This API element is subject to removal in a future version.
Projects are now layer categories - a type of Category with classId = "layer"
Project record.
Author:
Robert Fromont robert@fromont.net.nz
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default constructor.
    Project(javax.json.JsonObject json)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor from JSON.
    Project(Category category)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Constructor from Category object.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Getter for the name of the project.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
    setProject(String newProject)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Setter for the name of the project.
    setProjectId(int newProjectId)
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Project

      public Project()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
    • Project

      public Project(javax.json.JsonObject json)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor from JSON.
      Parameters:
      json - A JSON representation of the object to construct.
    • Project

      public Project(Category category)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Constructor from Category object.
      Parameters:
      category - The cateory to convert into a Project.
  • Method Details

    • getProjectId

      @Deprecated(since="1.2.0", forRemoval=true) public int getProjectId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated getter for the database key value.
      Returns:
      Database key value.
    • setProjectId

      @Deprecated(since="1.2.0", forRemoval=true) public Project setProjectId(int newProjectId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Deprecated setter for the database key value, which now has no effect.
      Parameters:
      newProjectId - Database key value.
      Returns:
      A reference to this object, so that setters can be chained.
    • getProject

      public String getProject()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Getter for the name of the project.
      Returns:
      The name of the project.
    • setProject

      public Project setProject(String newProject)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Setter for the name of the project.
      Parameters:
      newProject - The name of the project.
      Returns:
      A reference to this object, so that setters can be chained.