|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventInterface
Field Summary | |
---|---|
static long |
serialVersionUID
All classes in the RSVP application must declare a public static final long field called serialVersionUID. |
Method Summary | |
---|---|
void |
addResponse(Response response)
Adds a response from a potential guest at this event. |
void |
delete()
Deletes this event. |
SimpleDate |
getDate()
Returns the date of this Event. |
java.lang.String |
getLocation()
Returns the location of this Event. |
java.lang.String |
getName()
Gets the name of this Event. |
EmailAddressInterface |
getOrganizer()
Gets an EmailAddress object corresponding to the organizer/host of this event. |
java.lang.String |
getPasscode()
Returns the organizer's passcode, which should be supplied by a View that wishes to change this event. |
ResponseInterface |
getResponse(int n)
Returns the nth response provided for this Event. |
int |
getResponseCount()
Returns the number of Responses guests have provided for this event. |
boolean |
isDeleted()
Returns true if this event has been deleted. |
void |
setDate(SimpleDate date)
Sets the date of this Event. |
void |
setLocation(java.lang.String location)
Sets the location of this Event. |
void |
setName(java.lang.String name)
Sets the name for this Event. |
void |
setOrganizer(EmailAddressInterface organizer)
Sets the EmailAddress of the organizer for this event. |
void |
setPasscode(java.lang.String passcode)
Changes the organizer's passcode for this Event. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
SimpleDate getDate()
void setDate(SimpleDate date)
date
- the new Date for this Event.java.lang.String getLocation()
void setLocation(java.lang.String location)
location
- a String representing the new locationjava.lang.String getName()
void setName(java.lang.String name)
name
- a String describing this Event.EmailAddressInterface getOrganizer()
void setOrganizer(EmailAddressInterface organizer)
organizer
- the EmailAddress of the organizerjava.lang.String getPasscode()
void setPasscode(java.lang.String passcode)
passcode
- void addResponse(Response response)
response
- a Response from a guest.int getResponseCount()
ResponseInterface getResponse(int n)
Returns the nth response provided for this Event. Throws a BogusParameterException if n is an invalid response index.
Precondition: 0 <= n < this.getReponseCount()
n
- an integer between 0 (inclusive) and this.getResponseCount() (exclusive)
boolean isDeleted()
void delete()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |