org.apache.juddi.datatype
Class Email

java.lang.Object
  extended by org.apache.juddi.datatype.Email
All Implemented Interfaces:
java.io.Serializable, RegistryObject

public class Email
extends java.lang.Object
implements RegistryObject

Holds email address, can be adorned with an optinal useType attribute. If more than one Email element is saved within the same contact then the useType must be supplied. The useType attribute is used to describe the type of the email address in freeform text. Examples are "technical questions", "sales contact", etc.

Author:
Steve Viens (sviens@apache.org)
See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Email

public Email()
Construct a new initialized Email instance.


Email

public Email(java.lang.String email)
Construct a new Email with a given address.

Parameters:
email - The address of the email.

Email

public Email(java.lang.String email,
             java.lang.String type)
Construct a new Email with a given address and given usetype.

Parameters:
email - The address of the email.
type - The usetype of the email.
Method Detail

setValue

public void setValue(java.lang.String email)
Sets the emailAddress of the Email to the given address.

Parameters:
email - The new address of this email.

getValue

public java.lang.String getValue()
Returns the emailAddress of this Email.

Returns:
The emailAddress of this Email.

setUseType

public void setUseType(java.lang.String type)
Sets the usetype of this Email to the given usetype. If the new usetype is null, this Email doesn't have a usetype anymore.

Parameters:
type - The new usetype of this Email, or null if this Email doesn't have an usetype anymore.

getUseType

public java.lang.String getUseType()
Returns the usetype of this Email.

Returns:
The usetype of this Email, or null if this Email doesn't have an usetype.


Copyright © 2004-2007. All Rights Reserved.