|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.taskdefs.email.EmailAddress
public class EmailAddress
Holds an email address.
Constructor Summary | |
---|---|
EmailAddress()
Creates an empty email address |
|
EmailAddress(java.lang.String email)
Creates a new email address based on the given string |
Method Summary | |
---|---|
java.lang.String |
getAddress()
Returns the address |
java.lang.String |
getName()
Returns the display name |
void |
setAddress(java.lang.String address)
Sets the email address |
void |
setName(java.lang.String name)
Sets the personal / display name of the address |
java.lang.String |
toString()
Constructs a string "name <address>" or "address" |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EmailAddress()
public EmailAddress(java.lang.String email)
email
- the email address (with or without <>)
Acceptable forms include:
address
name
name
(name) address
address (name)Method Detail |
---|
public void setName(java.lang.String name)
name
- the display namepublic void setAddress(java.lang.String address)
address
- the actual email address (without <>)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getAddress()
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |