com.xenonsoft.bridgetown.test
Class PersonBean

java.lang.Object
  extended bycom.xenonsoft.bridgetown.test.PersonBean
All Implemented Interfaces:
java.lang.Comparable

public class PersonBean
extends java.lang.Object
implements java.lang.Comparable

The person bean value object used for testing. In other words this is just yet another plain old Java object.

Version:
$Id: PersonBean.java,v 1.3 2005/03/29 23:42:21 peter_pilgrim Exp $
Author:
peterp, 20-Sep-2004

Constructor Summary
PersonBean()
          Default constructor
PersonBean(java.lang.String firstName, java.lang.String lastName)
          Special constructor tested by the assembly factory
PersonBean(java.lang.String firstName, java.lang.String lastName, int age)
          Special constructor tested by the assembly factory
PersonBean(java.lang.String firstName, java.lang.String lastName, int age, PersonBean friend)
          Special constructor tested by the assembly factory
 
Method Summary
 int compareTo(java.lang.Object o)
          Implements the comparable interface
 boolean equals(java.lang.Object o)
          Overrides the standard equals method
 int getAge()
          Gets the age
 java.lang.String getFirstName()
          Gets the firstName
 PersonBean getFriend()
          Gets the friend
 java.lang.String getLastName()
          Gets the lastName
 int hashCode()
          Overrides the standard hash code method
 void setAge(int age)
          Sets the age
 void setFirstName(java.lang.String firstName)
          Sets the firstName
 void setFriend(PersonBean friend)
          Sets the friend
 void setLastName(java.lang.String lastName)
          Sets the lastName
 java.lang.String toString()
          Dump debuggable string for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersonBean

public PersonBean()
Default constructor


PersonBean

public PersonBean(java.lang.String firstName,
                  java.lang.String lastName)
Special constructor tested by the assembly factory

Parameters:
firstName -
lastName -

PersonBean

public PersonBean(java.lang.String firstName,
                  java.lang.String lastName,
                  int age)
Special constructor tested by the assembly factory

Parameters:
firstName -
lastName -
age -

PersonBean

public PersonBean(java.lang.String firstName,
                  java.lang.String lastName,
                  int age,
                  PersonBean friend)
Special constructor tested by the assembly factory

Parameters:
firstName -
lastName -
age -
friend -
Method Detail

getAge

public int getAge()
Gets the age

Returns:
Returns the age.

setAge

public void setAge(int age)
Sets the age

Parameters:
age - The age to set.

getFirstName

public java.lang.String getFirstName()
Gets the firstName

Returns:
Returns the firstName.

setFirstName

public void setFirstName(java.lang.String firstName)
Sets the firstName

Parameters:
firstName - The firstName to set.

getFriend

public PersonBean getFriend()
Gets the friend

Returns:
Returns the friend.

setFriend

public void setFriend(PersonBean friend)
Sets the friend

Parameters:
friend - The friend to set.

getLastName

public java.lang.String getLastName()
Gets the lastName

Returns:
Returns the lastName.

setLastName

public void setLastName(java.lang.String lastName)
Sets the lastName

Parameters:
lastName - The lastName to set.

equals

public boolean equals(java.lang.Object o)
Overrides the standard equals method

Parameters:
o - the reference object
Returns:
true if the objects are equal.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides the standard hash code method

Returns:
the hash code
See Also:
Object.hashCode()

compareTo

public int compareTo(java.lang.Object o)
Implements the comparable interface

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - the reference object
Returns:
the value
See Also:
Comparable.compareTo(java.lang.Object)

toString

public java.lang.String toString()
Dump debuggable string for this object. Implements / overrides toString

Returns:
String
See Also:
Object.toString()


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.