|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.mail.InternetMailAddress
This is a concrete implementation of IMailAddress
.
Constructor Summary | |
InternetMailAddress(java.lang.String sAddress)
Constructor. |
|
InternetMailAddress(java.lang.String sName,
java.lang.String sAddress)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Indicates whether some other FlagText
object is "equal to" this one. |
java.lang.String |
getAddress()
Gets the address. |
java.lang.String |
getFullAddress()
Gets the full address of this mail address. |
java.lang.String |
getName()
Gets the personal name of the mail address. |
void |
setAddress(java.lang.String sAddress)
Sets the address. |
void |
setName(java.lang.String sName)
Sets the personal name of the mail address. |
java.lang.String |
toString()
Returns the string representation of this object. |
void |
validate()
This method validates an email address. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public InternetMailAddress(java.lang.String sAddress)
sAddress
- the mail addresspublic InternetMailAddress(java.lang.String sName, java.lang.String sAddress)
sName
- the personal namesAddress
- the mail address (may not be null
or empty)Method Detail |
public java.lang.String getName()
IMailAddress
getName
in interface IMailAddress
com.compoze.mail.IMailAddress
public void setName(java.lang.String sName)
IMailAddress
setName
in interface IMailAddress
com.compoze.mail.IMailAddress
sName
- the personal name of the mail addresspublic void setAddress(java.lang.String sAddress)
IMailAddress
setAddress
in interface IMailAddress
com.compoze.mail.IMailAddress
sAddress
- the addresspublic java.lang.String getAddress()
IMailAddress
getAddress
in interface IMailAddress
com.compoze.mail.IMailAddress
public java.lang.String getFullAddress()
IMailAddress
getFullAddress
in interface IMailAddress
com.compoze.mail.IMailAddress
public boolean equals(java.lang.Object o)
FlagText
object is "equal to" this one. The email address is
used to determine equality.equals
in class java.lang.Object
true
, this object is the same as the obj argument; false
otherwisepublic void validate() throws MailException
validate
in interface IMailAddress
MailException
- public java.lang.String toString()
toString
in class java.lang.Object
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |