|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.model.Person
This class represents people on our email mailing list. Each person
is represented by a person object which contains all the
messages from that person.
| Field Summary | |
protected java.lang.String[] |
username
The person's usernames. |
| Constructor Summary | |
protected |
Person(Person person)
Copy constructor provided for subclasses. |
protected |
Person(java.lang.String name)
|
|
Person(java.lang.String name,
java.lang.String markedUpName,
java.lang.String[] email,
java.lang.String filename)
This Constructor takes in a String params which should contain all the necessary information about the person this object will represent. |
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compares the name of this person with the given person. |
boolean |
equals(java.lang.Object o)
Returns true if and only if the given object is a Person with the same name. |
java.lang.String |
getAllAddresses()
Returns the space-delimited list of email addresses for this person. |
protected java.lang.String |
getDefaultPicture()
Supplies the default picture filename to the Person(String) constructor. |
java.lang.String |
getEmailAddress()
Returns the primary email address for this person. |
java.lang.String |
getFileName()
Returns the filename that contains the picture of this person. |
java.lang.String |
getMarkedUpName()
Returns the html version of the name of this person. |
javax.mail.internet.MimeMessage |
getMessage(javax.mail.search.SearchTerm s,
Outbox box)
Returns the next message that matches the given search term. |
int |
getMessageCount(javax.mail.search.SearchTerm s,
Outbox box)
Returns the number of messages matching the given search term. |
java.lang.String |
getName()
Returns the name of this person. |
javax.mail.internet.MimeMessage |
getOldestMessage(javax.mail.search.SearchTerm s,
Outbox box)
Returns the last message that matches the given search term. |
int |
hashCode()
|
boolean |
isMatch(java.lang.String address)
Determines whether the address is approximately the same as this person's email address. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.lang.String[] username
| Constructor Detail |
protected Person(Person person)
protected Person(java.lang.String name)
public Person(java.lang.String name,
java.lang.String markedUpName,
java.lang.String[] email,
java.lang.String filename)
name - The String containing person's name.markedUpName - The String containing person's name with html markup.email - The Strings containing person's email address.filename - The String containing person's filename.
java.lang.NullPointerException - if the email address is malformed.
java.lang.IndexOutOfBoundsException - if the email address is malformed.| Method Detail |
protected java.lang.String getDefaultPicture()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object o)
public javax.mail.internet.MimeMessage getMessage(javax.mail.search.SearchTerm s,
Outbox box)
s - the criteria that the returned message must match.
public javax.mail.internet.MimeMessage getOldestMessage(javax.mail.search.SearchTerm s,
Outbox box)
s - the criteria that the returned message must match.
public java.lang.String getName()
public java.lang.String getMarkedUpName()
public java.lang.String getEmailAddress()
public java.lang.String getAllAddresses()
public java.lang.String getFileName()
public boolean isMatch(java.lang.String address)
public int getMessageCount(javax.mail.search.SearchTerm s,
Outbox box)
public java.lang.String toString()
public int hashCode()
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.