cz.utb.fai.simkovicp.pki.mail
Class Recipient

java.lang.Object
  extended by cz.utb.fai.simkovicp.pki.mail.Recipient
All Implemented Interfaces:
java.io.Serializable

public class Recipient
extends java.lang.Object
implements java.io.Serializable

This class represents the mail recipient.

See Also:
Serialized Form

Nested Class Summary
static class Recipient.Type
           
 
Constructor Summary
Recipient()
           
Recipient(java.lang.String address, Recipient.Type type)
           
 
Method Summary
 java.lang.String getAddress()
          Address
 Recipient.Type getType()
          Type
 void setAddress(java.lang.String address)
          Address
 void setType(Recipient.Type type)
          Type
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Recipient

public Recipient()

Recipient

public Recipient(java.lang.String address,
                 Recipient.Type type)
Method Detail

getAddress

public java.lang.String getAddress()
Address

Returns:
the address

setAddress

public void setAddress(java.lang.String address)
Address

Parameters:
address - the address to set

getType

public Recipient.Type getType()
Type

Returns:
the type

setType

public void setType(Recipient.Type type)
Type

Parameters:
type - the type to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object