net.sf.cscc.examples.simplesystem
Class PersonalInformation

java.lang.Object
  |
  +--net.sf.cscc.examples.simplesystem.PersonalInformation

public class PersonalInformation
extends java.lang.Object
implements java.io.Serializable

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!!

Author
Silvio Meier

Copyright
Silvio Meier, Tobias Reinhard, 2003

History
2003-05-15 SM First Version.
2003-05-16 SM Comments added.
2006-11-28 SM Comments revised.

Version
$Date: 2007/07/02 21:26:17 $, $Author: reode_orm $, $Revision: 1.2 $

See Also
Serialized Form

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

PersonalInformation

public 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.
Pre
true
Post
true
Parameters:
firstName - First name of the person.
lastName - Last name of the person.
age - Age of the person.

Method Detail

getLastName

public java.lang.String getLastName()
Returns the last name of the person.
Pre
true
Post
true
Returns:
Returns the last name of the person.


getFirstName

public java.lang.String getFirstName()
Returns the first name of the person.
Pre
true
Post
true
Returns:
Returns the first name of the person.


getAge

public int getAge()
Return the age of the person.
Pre
true
Post
true
Returns:
Returns the age of a person.


toString

public java.lang.String toString()
Returns a String consisting of the data represented by this object. The format is: <lastName><firstName><age>
Pre
true
Post
true
Returns:
Reutrns a string consitsting all the data of this object.
Overrides:
toString in class java.lang.Object



Copyright © 2003, Silvio Meier and Tobias Reinhard. All Rights Reserved.