net.wimpi.pim.contact.basicimpl
Class EmailAddressImpl

java.lang.Object
  |
  +--net.wimpi.pim.util.AbstractIdentifiable
        |
        +--net.wimpi.pim.contact.basicimpl.EmailAddressImpl
All Implemented Interfaces:
EmailAddress, Identifiable, java.io.Serializable

public class EmailAddressImpl
extends AbstractIdentifiable
implements EmailAddress

A basic and simple implementation of an EmailAddress.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger
See Also:
Serialized Form

Field Summary
protected  java.lang.String m_Address
           
protected  java.lang.String m_Type
           
 
Fields inherited from interface net.wimpi.pim.contact.model.EmailAddress
TYPE_INTERNET, TYPE_X400
 
Constructor Summary
EmailAddressImpl()
           
 
Method Summary
 java.lang.String getAddress()
          Returns the address of this EmailAddress.
 java.lang.String getType()
          Returns the type of this EmailAddress.
 boolean isType(java.lang.String type)
          Tests if this EmailAddress is of a given type.
 void setAddress(java.lang.String addr)
          Sets the address of this EmailAddress.
 void setType(java.lang.String type)
          Sets the type of this EmailAddress.
 
Methods inherited from class net.wimpi.pim.util.AbstractIdentifiable
equals, getUID, setUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.wimpi.pim.util.Identifiable
getUID
 

Field Detail

m_Address

protected java.lang.String m_Address

m_Type

protected java.lang.String m_Type
Constructor Detail

EmailAddressImpl

public EmailAddressImpl()
Method Detail

getAddress

public java.lang.String getAddress()
Description copied from interface: EmailAddress
Returns the address of this EmailAddress.

Specified by:
getAddress in interface EmailAddress
Returns:
the address as String.

setAddress

public void setAddress(java.lang.String addr)
Description copied from interface: EmailAddress
Sets the address of this EmailAddress.

Specified by:
setAddress in interface EmailAddress
Parameters:
addr - the address as String.

getType

public java.lang.String getType()
Description copied from interface: EmailAddress
Returns the type of this EmailAddress.

Specified by:
getType in interface EmailAddress
Returns:
the type as .

setType

public void setType(java.lang.String type)
Description copied from interface: EmailAddress
Sets the type of this EmailAddress.

Specified by:
setType in interface EmailAddress
Parameters:
type - the type as String.

isType

public boolean isType(java.lang.String type)
Description copied from interface: EmailAddress
Tests if this EmailAddress is of a given type. Common types are defined as constants of the EmailAddress interface.

Specified by:
isType in interface EmailAddress
Returns:
true if of given type, false otherwise.


Copyright © 2001-2003 jpim team.