org.apache.tools.ant.taskdefs.email
public class EmailAddress extends Object
Since: Ant 1.5
Constructor Summary | |
---|---|
EmailAddress() Creates an empty email address | |
EmailAddress(String email)
Creates a new email address based on the given string
|
Method Summary | |
---|---|
String | getAddress()
Returns the address
|
String | getName()
Returns the display name
|
void | setAddress(String address)
Sets the email address
|
void | setName(String name)
Sets the personal / display name of the address
|
String | toString()
Constructs a string "name <address>" or "address"
|
Parameters: email the email address (with or without <>) Acceptable forms include: address name name (name) address address (name)
Returns: the address part
Returns: the display name part
Parameters: address the actual email address (without <>)
Parameters: name the display name
Returns: a string representation of the address