public class Email extends java.lang.Object implements RegistryObject
Constructor and Description |
---|
Email()
Construct a new initialized Email instance.
|
Email(java.lang.String email)
Construct a new Email with a given address.
|
Email(java.lang.String email,
java.lang.String type)
Construct a new Email with a given address and given usetype.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUseType()
Returns the usetype of this Email.
|
java.lang.String |
getValue()
Returns the emailAddress of this Email.
|
void |
setUseType(java.lang.String type)
Sets the usetype of this Email to the given usetype.
|
void |
setValue(java.lang.String email)
Sets the emailAddress of the Email to the given address.
|
public Email()
public Email(java.lang.String email)
email
- The address of the email.public Email(java.lang.String email, java.lang.String type)
email
- The address of the email.type
- The usetype of the email.public void setValue(java.lang.String email)
email
- The new address of this email.public java.lang.String getValue()
public void setUseType(java.lang.String type)
type
- The new usetype of this Email, or null if this Email doesn't
have an usetype anymore.public java.lang.String getUseType()
Copyright ? 2003 Apache Software Foundation. All rights reserved.