|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.cscc.examples.simplesystem.PersonalInformation
This class encapsulates data which is entered at the client side.
This data container is then sent over the net by the help of the
client/server component. For sending the data container over the web,
the class has to implement the Serializable
interface.
This class must be available in the client and in the server package!!
2003-05-15 SM First Version. 2003-05-16 SM Comments added. 2006-11-28 SM Comments revised.
Constructor Summary | |
PersonalInformation(java.lang.String firstName,
java.lang.String lastName,
int age)
Initializes the object with a first name, a last name and the age of a person. |
Method Summary | |
int |
getAge()
Return the age of the person. |
java.lang.String |
getFirstName()
Returns the first name of the person. |
java.lang.String |
getLastName()
Returns the last name of the person. |
java.lang.String |
toString()
Returns a String consisting of the data represented by this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PersonalInformation(java.lang.String firstName, java.lang.String lastName, int age)
firstName
- First name of the person.lastName
- Last name of the person.age
- Age of the person.
Method Detail |
public java.lang.String getLastName()
public java.lang.String getFirstName()
public int getAge()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |