This class is not used in the current implementation.
Public Member Functions | |
Person () | |
Create a new unknown person. | |
Person (String name) | |
Create a new person. | |
boolean | addProject (Project p) |
Associates this person with the given project. | |
void | clearAttributes () |
Removes all attributes associated with this person. | |
boolean | containsAttribute (String key) |
Returns true if the attributes for this person includes a certain attribute, false otherwise. | |
int | countAttributes () |
Returns the number of attributes associated with this person. | |
int | countProjects () |
Returns the number of projects with which this person is associated. | |
String | getAttribute (String key) |
Returns the value of this person's given attribute, or null if it is not defined. | |
String | getEmailAddress () |
Accessor method for emailAddress. | |
String | getName () |
Accessor method for name. | |
boolean | isAssociatedWithProject (Project p) |
Returns true if this person is associated with the given project, false otherwise. | |
Iterator< Project > | projectIterator () |
Returns an iterator over the projects with which this person is associated. | |
String | putAttribute (String key, String value) |
Sets the value of the given attribute, adding it if it did not already exist. | |
void | removeAllProjects () |
Disassociates this person from all projects with which he or she is currently associated. | |
String | removeAttribute (String key) |
Removes the given attribute from this person's attributes if it existed. | |
boolean | removeProject (Project p) |
Disassociates this person from the given project. | |
void | setEmailAddress (String emailAddress) |
Setter method for emailAddress. | |
void | setName (String name) |
Setter method for name. | |
Private Attributes | |
String | name |
The name of this person (as much of it as is known). | |
String | emailAddress |
The email address associated with this person. | |
Set< Project > | projects |
The set of projects associated with this person. | |
Map< String, String > | attributes |
A map containing any other information about the person the user wishes to add. | |
Static Private Attributes | |
static final long | serialVersionUID = 2297518203901454182L |
Prevents serialziation collisions. |
edu.cmu.hcii.calo.model.Person.Person | ( | ) |
Create a new unknown person.
edu.cmu.hcii.calo.model.Person.Person | ( | String | name | ) |
Create a new person.
boolean edu.cmu.hcii.calo.model.Person.addProject | ( | Project | p | ) |
Associates this person with the given project.
p | the project to add |
void edu.cmu.hcii.calo.model.Person.clearAttributes | ( | ) |
Removes all attributes associated with this person.
boolean edu.cmu.hcii.calo.model.Person.containsAttribute | ( | String | key | ) |
Returns true if the attributes for this person includes a certain attribute, false otherwise.
key | the attribute to find |
int edu.cmu.hcii.calo.model.Person.countAttributes | ( | ) |
Returns the number of attributes associated with this person.
int edu.cmu.hcii.calo.model.Person.countProjects | ( | ) |
Returns the number of projects with which this person is associated.
String edu.cmu.hcii.calo.model.Person.getAttribute | ( | String | key | ) |
Returns the value of this person's given attribute, or null if it is not defined.
key | The attribute to get the value of |
String edu.cmu.hcii.calo.model.Person.getEmailAddress | ( | ) |
Accessor method for emailAddress.
String edu.cmu.hcii.calo.model.Person.getName | ( | ) |
Accessor method for name.
boolean edu.cmu.hcii.calo.model.Person.isAssociatedWithProject | ( | Project | p | ) |
Returns true if this person is associated with the given project, false otherwise.
p | the project to ask about |
Iterator<Project> edu.cmu.hcii.calo.model.Person.projectIterator | ( | ) |
Returns an iterator over the projects with which this person is associated.
String edu.cmu.hcii.calo.model.Person.putAttribute | ( | String | key, | |
String | value | |||
) |
Sets the value of the given attribute, adding it if it did not already exist.
key | the attribute to add or set | |
value | the new value of this attribute |
void edu.cmu.hcii.calo.model.Person.removeAllProjects | ( | ) |
Disassociates this person from all projects with which he or she is currently associated.
String edu.cmu.hcii.calo.model.Person.removeAttribute | ( | String | key | ) |
Removes the given attribute from this person's attributes if it existed.
key | the attribute to remove |
boolean edu.cmu.hcii.calo.model.Person.removeProject | ( | Project | p | ) |
Disassociates this person from the given project.
p | the project to remove |
void edu.cmu.hcii.calo.model.Person.setEmailAddress | ( | String | emailAddress | ) |
Setter method for emailAddress.
emailAddress | the emailAddress to set |
void edu.cmu.hcii.calo.model.Person.setName | ( | String | name | ) |
Setter method for name.
name | the name to set |
final long edu.cmu.hcii.calo.model.Person.serialVersionUID = 2297518203901454182L [static, private] |
Prevents serialziation collisions.
String edu.cmu.hcii.calo.model.Person.name [private] |
The name of this person (as much of it as is known).
String edu.cmu.hcii.calo.model.Person.emailAddress [private] |
The email address associated with this person.
Set<Project> edu.cmu.hcii.calo.model.Person.projects [private] |
The set of projects associated with this person.
Map<String, String> edu.cmu.hcii.calo.model.Person.attributes [private] |
A map containing any other information about the person the user wishes to add.