|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--users.User | +--market.UPerson
A person that interacts with the market. Can be a customer
or an
employee
.
Field Summary | |
static String |
FRAU
|
static String |
HERR
|
Fields inherited from class users.User |
DEFAULT_PASSWORD_GARBLER, m_lhListeners |
Constructor Summary | |
UPerson(String userName)
Creates a new person. |
Method Summary | |
int |
compareTo(Object o)
Sets the default comparison order for UPersons to |
String |
getAdress()
Gets the person's address. |
String |
getCity()
Gets the city where the person lives. |
Calendar |
getDayOfRegistration()
Gets the day the person has first had contact with the market. |
String |
getFirstName()
Gets the person's forename. |
String |
getFullName()
Gets the person's name. |
int |
getMonthsOfMembership()
Returns the time in months the person has been part of the market, be it as customer or worker. |
int |
getPostcode()
Gets the person's postcode. |
String |
getSalutation()
Gets the person's salutation. |
String |
getStreet()
Gets the street where the person lives. |
String |
getSurname()
Gets the person's surname. |
String |
getTelephone()
Gets the person's telephone number. |
void |
setAddress(String street,
int postcode,
String city)
Sets the person's address. |
void |
setCity(String city)
Sets the city where the person lives. |
void |
setFirstName(String firstName)
Sets the person's forename. |
void |
setFullName(String salutation,
String name,
String firstName)
Sets the person's name. |
void |
setPostcode(int postcode)
Sets the person's postcode. |
void |
setSalutation(String salutation)
Sets the person's salutation. |
void |
setStreet(String street)
Sets the street where the person lives. |
void |
setSurname(String name)
Sets the person's surname. |
void |
setTelephone(String telephone)
Sets the person's telephone number. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static String HERR
public static String FRAU
Constructor Detail |
public UPerson(String userName)
userName
- the person's ID.Method Detail |
public void setFullName(String salutation, String name, String firstName)
salutation
- the person's salutation (Mr, Mrs)name
- the person's surname.firstName
- the person's forename.public void setAddress(String street, int postcode, String city)
public void setTelephone(String telephone)
public String getFullName()
public String getAdress()
public String getTelephone()
public String getSalutation()
public void setSalutation(String salutation)
salutation
- the salutation to be set.public String getSurname()
public void setSurname(String name)
name
- the surname to be set.public String getFirstName()
public void setFirstName(String firstName)
firstName
- the forename to be set.public String getStreet()
public void setStreet(String street)
street
- the street to be set.public int getPostcode()
public void setPostcode(int postcode)
postcode
- the postcode to be set.public String getCity()
public void setCity(String city)
city
- the city.public Calendar getDayOfRegistration()
public int getMonthsOfMembership()
getDayOfRegistration()
public int compareTo(Object o)
compareTo
in interface Comparable
compareTo
in class User
|
Großmarkt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |