|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.types.EmailAddress
public class EmailAddress
An email address.
Represents the textual string of an RFC 2822 email address. Domain literals and quoted identifiers are not supported. Only literal equality (i.e. not logical equality) is provided by this class.
Constructor Summary | |
---|---|
protected |
EmailAddress()
Constructor. |
|
EmailAddress(java.lang.String newText)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getText()
Accessor. |
int |
hashCode()
|
static boolean |
isValidText(java.lang.String email)
Utility method that checks to see if the specified string is a valid email address according to the RFC 2822 specification. |
void |
setText(java.lang.String text)
Set the text for this email address. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected EmailAddress()
public EmailAddress(java.lang.String newText)
newText
- The text representation of the email address.Method Detail |
---|
public java.lang.String getText()
public void setText(java.lang.String text)
text
- The text representation.public static boolean isValidText(java.lang.String email)
email
- The email address string to test for validity.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |