net.wimpi.pim.contact.model
Interface EmailAddress

All Superinterfaces:
Identifiable, java.io.Serializable
All Known Implementing Classes:
EmailAddressImpl

public interface EmailAddress
extends Identifiable, java.io.Serializable

An interface modeling an email address based on the types and information of the vCard Mime directory profile standard specification.

For reference see RFC 2426:
3.3.2 EMAIL Type Definition

Note that for a standard conformant implementation you have to observe that the default type is INTERNET.

Version:
0.1 (22/07/2003)
Author:
Dieter Wimberger

Field Summary
static java.lang.String TYPE_INTERNET
          Indicates an internet address type.
static java.lang.String TYPE_X400
          Indicates an X400 address type.
 
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 interface net.wimpi.pim.util.Identifiable
getUID
 

Field Detail

TYPE_INTERNET

public static final java.lang.String TYPE_INTERNET
Indicates an internet address type.

See Also:
Constant Field Values

TYPE_X400

public static final java.lang.String TYPE_X400
Indicates an X400 address type.

See Also:
Constant Field Values
Method Detail

getAddress

public java.lang.String getAddress()
Returns the address of this EmailAddress.

Returns:
the address as String.

setAddress

public void setAddress(java.lang.String addr)
Sets the address of this EmailAddress.

Parameters:
addr - the address as String.

getType

public java.lang.String getType()
Returns the type of this EmailAddress.

Returns:
the type as .

setType

public void setType(java.lang.String type)
Sets the type of this EmailAddress.

Parameters:
type - the type as String.

isType

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

Returns:
true if of given type, false otherwise.


Copyright © 2001-2003 jpim team.