Package org.bedework.calfacade.base
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 Summary
Modifier and TypeMethodDescriptionvoidaddContact(BwContact val) Return a clone of the SetReturn a copy of the SetGet the contact hrefsGet the contactsintbooleanhasContact(BwContact val) Check the contacts for the same entitybooleanremoveContact(BwContact val) voidsetContactHrefs(Set<String> val) Set the contacts hrefs SetvoidsetContacts(Set<BwContact> val) Set the contacts Set
-
Method Details
-
setContactHrefs
Set the contacts hrefs Set- Parameters:
val- Set of contact hrefs
-
getContactHrefs
Get the contact hrefs- Returns:
- Set of contact hrefs
-
setContacts
Set the contacts Set- Parameters:
val- Set of contacts
-
getContacts
Get the contacts- Returns:
- Set of contacts
-
getNumContacts
int getNumContacts()- Returns:
- int number of contacts.
-
addContact
- Parameters:
val-
-
removeContact
- Parameters:
val-- Returns:
- boolean true if removed.
-
hasContact
Check the contacts for the same entity- Parameters:
val- Contact to test- Returns:
- boolean true if the event has a particular contact
-
copyContacts
Return a copy of the Set- Returns:
- Set of BwContact
-
cloneContacts
Return a clone of the Set- Returns:
- Set of BwContact
-