|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.core.net.EmailContact
public class EmailContact
Encapsulates an email contact.
| Field Summary | |
|---|---|
protected String |
m_Address
the address. |
protected String |
m_Email
the email address. |
protected String |
m_FirstName
the first name. |
protected String |
m_LastName
the last name. |
protected String |
m_Note
the note. |
protected String |
m_Phone
the phone. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
EmailContact()
|
|
| Method Summary | |
|---|---|
String |
addressTipText()
Returns the tip text for this property. |
int |
compareTo(EmailContact o)
Compares this contact with the provided one. |
void |
defineOptions()
Adds options to the internal list of options. |
String |
emailTipText()
Returns the tip text for this property. |
boolean |
equals(Object obj)
Compares this object against the specified one. |
String |
firstNameTipText()
Returns the tip text for this property. |
String |
getAddress()
Returns the address. |
String |
getEmail()
Returns the email name. |
String |
getFirstName()
Returns the first name. |
String |
getLastName()
Returns the last name. |
String |
getNote()
Returns the note. |
String |
getPhone()
Returns the phone. |
String |
globalInfo()
Returns a string describing the object. |
String |
lastNameTipText()
Returns the tip text for this property. |
String |
noteTipText()
Returns the tip text for this property. |
String |
phoneTipText()
Returns the tip text for this property. |
void |
setAddress(String value)
Sets the address. |
void |
setEmail(String value)
Sets the email. |
void |
setFirstName(String value)
Sets the first name. |
void |
setLastName(String value)
Sets the last name. |
void |
setNote(String value)
Sets the note. |
void |
setPhone(String value)
Sets the phone. |
EmailContact |
shallowCopy()
Returns a shallow copy of itself, i.e., based on the commandline options. |
EmailContact |
shallowCopy(boolean expand)
Returns a shallow copy of itself, i.e., based on the commandline options. |
EmailAddress |
toEmailAddress()
Turns the contact into an email address. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String m_FirstName
protected String m_LastName
protected String m_Email
protected String m_Address
protected String m_Phone
protected String m_Note
| Constructor Detail |
|---|
public EmailContact()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setFirstName(String value)
value - the first namepublic String getFirstName()
public String firstNameTipText()
public void setLastName(String value)
value - the last namepublic String getLastName()
public String lastNameTipText()
public void setEmail(String value)
value - the emailpublic String getEmail()
public String emailTipText()
public void setPhone(String value)
value - the phonepublic String getPhone()
public String phoneTipText()
public void setAddress(String value)
value - the addresspublic String getAddress()
public String addressTipText()
public void setNote(String value)
value - the notepublic String getNote()
public String noteTipText()
public int compareTo(EmailContact o)
compareTo in interface Comparable<EmailContact>o - the contact to compare with
public boolean equals(Object obj)
equals in class Objectobj - the object to compare with
public EmailContact shallowCopy()
shallowCopy in interface ShallowCopySupporter<EmailContact>public EmailContact shallowCopy(boolean expand)
shallowCopy in interface ShallowCopySupporter<EmailContact>expand - whether to expand variables to their current values
public EmailAddress toEmailAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||