Class CategoryInfo
- java.lang.Object
-
- com.nomagic.magicdraw.teamwork2.esi.CategoryInfo
-
- All Implemented Interfaces:
java.io.Serializable
@OpenApi public class CategoryInfo extends java.lang.Object implements java.io.Serializable
Project category information object. So far project categories are single level - no tree structure.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CategoryInfo(java.util.UUID id, java.lang.String name)
Constructs category with the given name and no projects assigned to it.CategoryInfo(java.util.UUID id, java.lang.String name, java.util.UUID parentID, java.util.Set<java.util.UUID> nested)
Constructs category with the given name and no projects assigned to it.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.UUID
getID()
Gets category identifierjava.lang.String
getName()
Gets category namejava.util.Set<java.util.UUID>
getNested()
Get nested category idjava.util.UUID
getParentID()
Get category parent idint
hashCode()
void
setName(java.lang.String name)
Sets category name.java.lang.String
toString()
-
-
-
Constructor Detail
-
CategoryInfo
public CategoryInfo(@CheckForNull java.util.UUID id, java.lang.String name, @CheckForNull java.util.UUID parentID, java.util.Set<java.util.UUID> nested)
Constructs category with the given name and no projects assigned to it.- Parameters:
id
- identifiername
- the category nameparentID
- parent category idnested
- nested category id
-
CategoryInfo
public CategoryInfo(@CheckForNull java.util.UUID id, java.lang.String name)
Constructs category with the given name and no projects assigned to it.- Parameters:
id
- identifiername
- the category name
-
-
Method Detail
-
getParentID
@OpenApi @CheckForNull public java.util.UUID getParentID()
Get category parent id- Returns:
- parent category id
-
getNested
@OpenApi public java.util.Set<java.util.UUID> getNested()
Get nested category id- Returns:
- nested category ids
-
getID
@CheckForNull @OpenApi public java.util.UUID getID()
Gets category identifier- Returns:
- category identifier or null if it is unspecified
-
getName
@OpenApi public java.lang.String getName()
Gets category name- Returns:
- name of the category
-
setName
public void setName(java.lang.String name)
Sets category name.- Parameters:
name
- a new category name
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(@CheckForNull java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-