Class 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 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.
      • 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.