Class CategoryInfo

java.lang.Object
com.nomagic.magicdraw.teamwork2.esi.CategoryInfo
All Implemented Interfaces:
Serializable

@OpenApi public class CategoryInfo extends Object implements Serializable
Project category information object. So far project categories are single level - no tree structure.
See Also:
  • Constructor Details

    • CategoryInfo

      public CategoryInfo(@CheckForNull UUID id, String name, @CheckForNull UUID parentID, Set<UUID> nested)
      Constructs category with the given name and no projects assigned to it.
      Parameters:
      id - identifier
      name - the category name
      parentID - parent category id
      nested - nested category id
    • CategoryInfo

      public CategoryInfo(@CheckForNull UUID id, String name)
      Constructs category with the given name and no projects assigned to it.
      Parameters:
      id - identifier
      name - the category name
  • Method Details

    • getParentID

      @OpenApi @CheckForNull public UUID getParentID()
      Get category parent id
      Returns:
      parent category id
    • getNested

      @OpenApi public Set<UUID> getNested()
      Get nested category id
      Returns:
      nested category ids
    • getID

      @CheckForNull @OpenApi public UUID getID()
      Gets category identifier
      Returns:
      category identifier or null if it is unspecified
    • getName

      @OpenApi public String getName()
      Gets category name
      Returns:
      name of the category
    • setName

      public void setName(String name)
      Sets category name.
      Parameters:
      name - a new category name
    • addNested

      public void addNested(UUID childId)
      Adds child category id
      Parameters:
      childId - child category id
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(@CheckForNull Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object