|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.util.EmailAddress
public class EmailAddress
EmailAddress address.
Verifies an email address (syntax check via regex) and optionally validates the DNS MX records.
| Constructor Summary | |
|---|---|
EmailAddress()
Creates an empty mail address |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the mail address |
String |
getAddress()
Gets the mail address as a string. |
String |
getError()
Gets the error message. |
boolean |
isValid()
Returns whether mail address is valid |
boolean |
setAddress(String address)
Sets the mail address and verifies it. |
boolean |
setAddress(String address,
boolean withDomainCheck)
Sets the mail address and verifies it. |
void |
setError(String error)
Sets the error message. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmailAddress()
| Method Detail |
|---|
public void clear()
public boolean setAddress(String address,
boolean withDomainCheck)
address - the mail addresswithDomainCheck - true if check domainname for DNS MX-records
public boolean setAddress(String address)
address - the mail address
public String getAddress()
public String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class Objectpublic boolean isValid()
public String getError()
public void setError(String error)
error - the error message, null if none
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||