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 Details

    • setCategoryHrefs

      void setCategoryHrefs(Set<String> val)
      Set the categories uids Set
      Parameters:
      val - Set of category uids
    • getCategoryHrefs

      Set<String> getCategoryHrefs()
      Get the categories
      Returns:
      Set of category uids
    • setCategories

      void setCategories(Set<BwCategory> val)
      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

      boolean addCategory(BwCategory val)
      Parameters:
      val - the category to add
      Returns:
      boolean true if added.
    • removeCategory

      boolean removeCategory(BwCategory val)
      Parameters:
      val - the category to remove
      Returns:
      boolean true if removed.
    • hasCategory

      boolean hasCategory(BwCategory val)
      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