Class DescriptionInfoWithCategories
- java.lang.Object
-
- fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
-
- fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfoWithCategories
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
ARDAndProfInfo
,CommonInfoContainer
public abstract class DescriptionInfoWithCategories extends DescriptionInfo implements Cloneable
- Author:
- Niko Siltala
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<CategoryInfo>
categoriesList
Collection of Categories
-
Constructor Summary
Constructors Constructor Description DescriptionInfoWithCategories()
DescriptionInfoWithCategories(String id, String guid, String name, String desc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addCategoryInfo(CategoryInfo categoryInfo)
Adds new categoryInfo to this container's collectionObject
clone()
Set<CategoryInfo>
getCategoriesList()
void
setCategoriesList(Set<CategoryInfo> categoriesList)
-
Methods inherited from class fi.tut.mei.resdescapi.rescatapi.model.DescriptionInfo
equals, getDescription, getGuid, getId, getName, hashCode, setDescription, setGuid, setId, setName, toString
-
-
-
-
Field Detail
-
categoriesList
protected Set<CategoryInfo> categoriesList
Collection of Categories
-
-
Method Detail
-
getCategoriesList
public Set<CategoryInfo> getCategoriesList()
- Returns:
- the categoriesList
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clone
in classDescriptionInfo
- Throws:
CloneNotSupportedException
-
setCategoriesList
public void setCategoriesList(Set<CategoryInfo> categoriesList)
- Parameters:
categoriesList
- the categoriesList to set
-
addCategoryInfo
public boolean addCategoryInfo(CategoryInfo categoryInfo)
Adds new categoryInfo to this container's collection- Parameters:
categoryInfo
- information about this category- Returns:
- true if it was added, false if not (e.g. it was existing there already).
-
-