Package nzilbb.labbcat.model
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 ofCategorywith classId = "layer"Project record.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Constructor Summary
Constructors Constructor Description Project()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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetProject()Deprecated, for removal: This API element is subject to removal in a future version.Getter for the name of the project.intgetProjectId()Deprecated, for removal: This API element is subject to removal in a future version.ProjectsetProject(String newProject)Deprecated, for removal: This API element is subject to removal in a future version.Setter for the name of the project.ProjectsetProjectId(int newProjectId)Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class nzilbb.labbcat.model.Category
getCategory, getClassId, getDescription, getDisplayOrder, setCategory, setClassId, setDescription, setDisplayOrder, toJson
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-