|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EmailAddressInterface
Field Summary | |
---|---|
static long |
serialVersionUID
|
Method Summary | |
---|---|
java.lang.String |
getDisplayEmail()
Returns the "displayable form" of the responder's email address. |
java.lang.String |
getEmail()
Returns the address, as a String. |
void |
setEmail(java.lang.String email)
Sets this email address to the given String. |
java.lang.String |
toString()
Returns a String representation of this email address. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
java.lang.String toString()
toString
in class java.lang.Object
void setEmail(java.lang.String email)
email
- an email address; must be "valid," as defined by EmailAddress.isValid(String)java.lang.String getDisplayEmail()
Returns the "displayable form" of the responder's email address. This is obscured somewhat to prevent spam. The "displayable form" of an email address consists of:
As an example, the email address fred@flintstones.bedrock.gov would have the displayable form fred@f...gov
Precondition: this EmailAddress has been initialized with a String corresponding to a valid email address. If this is not the case, this method will throw a StateException.
java.lang.String getEmail()
Returns the address, as a String.
Precondition: this EmailAddress has been initialized with a String corresponding to a valid email address. If this is not the case, this method will throw an exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |