com.interstarinc.xmedius.sendfax.model
Class DefaultFaxModel.DefaultRecipientInfo

java.lang.Object
  extended by com.interstarinc.xmedius.sendfax.model.DefaultFaxModel.DefaultRecipientInfo
All Implemented Interfaces:
IRecipientInfo
Enclosing class:
DefaultFaxModel

private class DefaultFaxModel.DefaultRecipientInfo
extends Object
implements IRecipientInfo

A default fax recipient implementation.
Instances of this class must be managed with fax recipient methods from enclosing class.

Version:
$Revision: 1.15 $
Author:
André Morin
See Also:
DefaultFaxModel.addRecipientInfo(String, String, String), DefaultFaxModel.addRecipientInfo(IRecipientInfo), DefaultFaxModel.removeRecipientInfo(String, String), DefaultFaxModel.removeRecipientInfo(IRecipientInfo)

Field Summary
private  String company
           
private  String faxNumber
           
private  String name
           
 
Constructor Summary
private DefaultFaxModel.DefaultRecipientInfo(String name, String company, String faxNumber)
           
 
Method Summary
 boolean equals(Object o)
           
 String getCompany()
          Optional.
 String getFaxNumber()
          Required.
 String getName()
          Optional.
 int hashCode()
           
 void setCompany(String company)
           
 void setFaxNumber(String faxNumber)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

faxNumber

private String faxNumber

company

private String company

name

private String name
Constructor Detail

DefaultFaxModel.DefaultRecipientInfo

private DefaultFaxModel.DefaultRecipientInfo(String name,
                                             String company,
                                             String faxNumber)
Method Detail

getCompany

public String getCompany()
Description copied from interface: IRecipientInfo
Optional. May return null.

Specified by:
getCompany in interface IRecipientInfo
Returns:
The fax recipient company

setCompany

public void setCompany(String company)

getFaxNumber

public String getFaxNumber()
Description copied from interface: IRecipientInfo
Required. Must not be null.

Specified by:
getFaxNumber in interface IRecipientInfo
Returns:
The recipient fax number.

setFaxNumber

public void setFaxNumber(String faxNumber)

getName

public String getName()
Description copied from interface: IRecipientInfo
Optional. May return null.

Specified by:
getName in interface IRecipientInfo
Returns:
The recipient name

setName

public void setName(String name)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object