|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rsvp.model.Response
public class Response
Field Summary |
---|
Fields inherited from interface rsvp.model.ResponseInterface |
---|
MAYBE, NO, serialVersionUID, YES |
Constructor Summary | |
---|---|
Response()
|
Method Summary | |
---|---|
java.lang.String |
getComment()
Gets this Response's comment. |
EmailAddressInterface |
getEmail()
Gets the email address of the respondent. |
int |
getStatus()
Returns the status of this response: one of Response.YES, Response.NO, or Response.MAYBE. |
void |
setComment(java.lang.String comment)
Sets the comment for this Response. |
void |
setEmail(EmailAddressInterface email)
Sets the email address of the respondent. |
void |
setStatus(int status)
Sets the status of this response; throws a BogusParameterException if the status supplied is invalid. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Response()
Method Detail |
---|
public EmailAddressInterface getEmail()
ResponseInterface
getEmail
in interface ResponseInterface
public void setEmail(EmailAddressInterface email)
ResponseInterface
setEmail
in interface ResponseInterface
email
- a valid EmailAddresspublic java.lang.String getComment()
ResponseInterface
getComment
in interface ResponseInterface
public void setComment(java.lang.String comment)
ResponseInterface
setComment
in interface ResponseInterface
comment
- a String representing a comment.public int getStatus()
ResponseInterface
getStatus
in interface ResponseInterface
public void setStatus(int status)
ResponseInterface
Precondition: The supplied status must be Response.YES, Response.NO, or Response.MAYBE. If a different status is supplied, this method must throw a BogusParameterException.
setStatus
in interface ResponseInterface
status
- one of Response.YES, Response.NO, or Response.MAYBE.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |