Methods Summary |
---|
public java.lang.Object | clone()Copies the current instance.
EmailAddress retval = new EmailAddress();
retval.displayName = displayName;
if (email != null) retval.email = (Email) email.clone();
return retval;
|
public java.lang.String | encode()Gets the string encoded version of this object.
Here, we implement only the "displayName <email>" form
and not the "email (displayName)" form.
String encoded_string;
if (displayName != null) {
encoded_string = displayName + Separators.LESS_THAN;
} else {
encoded_string = "";
}
encoded_string += email.encode();
if (displayName != null) {
encoded_string += Separators.GREATER_THAN;
}
return encoded_string;
|
public java.lang.String | getDisplayName()Gets the current user friendly name.
return displayName;
|
public void | setDisplayName(java.lang.String displayName)Sets the display name member.
this.displayName = displayName;
|
public void | setEmail(Email email)Sets the email address member.
this.email = email;
|