Package org.bedework.calfacade.base
Interface CategorisedEntity
- All Known Subinterfaces:
EventEntity
- All Known Implementing Classes:
BwCalendar,BwCalendarNewWrapper,BwEvent,BwEventAnnotation,BwEventNewWrapper,BwEventObj,BwEventProxy,CalendarWrapper
public interface CategorisedEntity
An entity that can have one or more categories will implement this interface.
- Author:
- douglm
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddCategory(BwCategory val) Return a clone of the SetReturn a copy of the SetGet the categoriesGet the categoriesintbooleanhasCategory(BwCategory val) Check the categories for the same entitybooleanremoveCategory(BwCategory val) voidsetCategories(Set<BwCategory> val) Set the categories SetvoidsetCategoryHrefs(Set<String> val) Set the categories uids Set
-
Method Details
-
setCategoryHrefs
Set the categories uids Set- Parameters:
val- Set of category uids
-
getCategoryHrefs
Get the categories- Returns:
- Set of category uids
-
setCategories
Set the categories Set- Parameters:
val- Set of categories
-
getCategories
Set<BwCategory> getCategories()Get the categories- Returns:
- Set of categories
-
getNumCategories
int getNumCategories()- Returns:
- int number of categories.
-
addCategory
- Parameters:
val- the category to add- Returns:
- boolean true if added.
-
removeCategory
- Parameters:
val- the category to remove- Returns:
- boolean true if removed.
-
hasCategory
Check the categories for the same entity- Parameters:
val- Category to test- Returns:
- boolean true if the event has a particular category
-
copyCategories
Set<BwCategory> copyCategories()Return a copy of the Set- Returns:
- Set of BwCategory
-
cloneCategories
Set<BwCategory> cloneCategories()Return a clone of the Set- Returns:
- Set of BwCategory
-