Class EmailAddress
java.lang.Object
org.apache.tools.ant.taskdefs.email.EmailAddress
-
Constructor Summary
ConstructorDescriptionCreates an empty email addressEmailAddress
(String email) Creates a new email address based on the given string -
Method Summary
Modifier and TypeMethodDescriptionReturns the addressgetName()
Returns the display namevoid
setAddress
(String address) Sets the email address.void
Sets the personal / display name of the address.toString()
Constructs a string "name <address>" or "address"
-
Constructor Details
-
EmailAddress
public EmailAddress()Creates an empty email address -
EmailAddress
Creates a new email address based on the given string- Parameters:
email
- the email address (with or without <>) Acceptable forms include: address <address> name <address> <address> name (name) address address (name)
-
-
Method Details
-
setName
Sets the personal / display name of the address.- Parameters:
name
- the display name
-
setAddress
Sets the email address.- Parameters:
address
- the actual email address (without <>)
-
toString
-
getAddress
-
getName
-