Interface ContactedEntity

All Known Subinterfaces:
EventEntity
All Known Implementing Classes:
BwEvent, BwEventAnnotation, BwEventNewWrapper, BwEventObj, BwEventProxy

public interface ContactedEntity
An entity that can have one or more contacts will implement this interface.
Author:
douglm
  • Method Details

    • setContactHrefs

      void setContactHrefs(Set<String> val)
      Set the contacts hrefs Set
      Parameters:
      val - Set of contact hrefs
    • getContactHrefs

      Set<String> getContactHrefs()
      Get the contact hrefs
      Returns:
      Set of contact hrefs
    • setContacts

      void setContacts(Set<BwContact> val)
      Set the contacts Set
      Parameters:
      val - Set of contacts
    • getContacts

      Set<BwContact> getContacts()
      Get the contacts
      Returns:
      Set of contacts
    • getNumContacts

      int getNumContacts()
      Returns:
      int number of contacts.
    • addContact

      void addContact(BwContact val)
      Parameters:
      val -
    • removeContact

      boolean removeContact(BwContact val)
      Parameters:
      val -
      Returns:
      boolean true if removed.
    • hasContact

      boolean hasContact(BwContact val)
      Check the contacts for the same entity
      Parameters:
      val - Contact to test
      Returns:
      boolean true if the event has a particular contact
    • copyContacts

      Set<BwContact> copyContacts()
      Return a copy of the Set
      Returns:
      Set of BwContact
    • cloneContacts

      Set<BwContact> cloneContacts()
      Return a clone of the Set
      Returns:
      Set of BwContact