org.apache.commons.betwixt
Class CustomerBean

java.lang.Object
  extended by org.apache.commons.betwixt.CustomerBean
All Implemented Interfaces:
java.io.Serializable

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

CustomerBean is a sample bean for use by the test cases.

Version:
$Revision: 438373 $
Author:
James Strachan, Michael Davey
See Also:
Serialized Form

Constructor Summary
CustomerBean()
           
 
Method Summary
 void addEmail(java.lang.String email)
           
 void addLocation(java.lang.String location)
           
 void addNumber(int number)
           
 boolean equals(java.lang.Object obj)
           
 AddressBean getAddress()
           
 java.math.BigDecimal getBigDecimal()
          Returns the bigDecimal.
 java.math.BigInteger getBigInteger()
          Returns the bigInteger.
 java.sql.Date getDate()
          Returns the date.
 java.lang.String[] getEmails()
           
 java.lang.String getID()
           
 java.lang.String getLocation(int index)
          An indexed property
 java.util.List getLocations()
           
 java.lang.String getName()
           
 java.lang.String getNickName()
           
 int[] getNumbers()
           
 java.util.Map getProjectMap()
           
 java.util.Iterator getProjectNames()
           
 java.util.Enumeration getProjectURLs()
           
 java.sql.Time getTime()
          Returns the time.
 java.sql.Timestamp getTimestamp()
          Returns the timestamp.
 int hashCode()
           
 void setAddress(AddressBean address)
           
 void setBigDecimal(java.math.BigDecimal bigDecimal)
          Sets the bigDecimal.
 void setBigInteger(java.math.BigInteger bigInteger)
          Sets the bigInteger.
 void setDate(java.sql.Date date)
          Sets the date.
 void setEmails(java.lang.String[] emails)
           
 void setID(java.lang.String id)
           
 void setLocation(int index, java.lang.String location)
          An indexed property
 void setName(java.lang.String name)
           
 void setNickName(java.lang.String nickName)
           
 void setNumbers(int[] numbers)
           
 void setProjectMap(java.util.Map projectMap)
           
 void setTime(java.sql.Time time)
          Sets the time.
 void setTimestamp(java.sql.Timestamp timestamp)
          Sets the timestamp.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomerBean

public CustomerBean()
Method Detail

getID

public java.lang.String getID()

getNickName

public java.lang.String getNickName()

getName

public java.lang.String getName()

getEmails

public java.lang.String[] getEmails()

getNumbers

public int[] getNumbers()

getAddress

public AddressBean getAddress()

getProjectMap

public java.util.Map getProjectMap()

getProjectNames

public java.util.Iterator getProjectNames()

getProjectURLs

public java.util.Enumeration getProjectURLs()

getLocations

public java.util.List getLocations()

getLocation

public java.lang.String getLocation(int index)
An indexed property


setID

public void setID(java.lang.String id)

setName

public void setName(java.lang.String name)

setNickName

public void setNickName(java.lang.String nickName)

setEmails

public void setEmails(java.lang.String[] emails)

addEmail

public void addEmail(java.lang.String email)

setNumbers

public void setNumbers(int[] numbers)

addNumber

public void addNumber(int number)

setAddress

public void setAddress(AddressBean address)

setProjectMap

public void setProjectMap(java.util.Map projectMap)

addLocation

public void addLocation(java.lang.String location)

setLocation

public void setLocation(int index,
                        java.lang.String location)
An indexed property


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getDate

public java.sql.Date getDate()
Returns the date.

Returns:
Date

getTime

public java.sql.Time getTime()
Returns the time.

Returns:
Time

getTimestamp

public java.sql.Timestamp getTimestamp()
Returns the timestamp.

Returns:
Timestamp

setDate

public void setDate(java.sql.Date date)
Sets the date.

Parameters:
date - The date to set

setTime

public void setTime(java.sql.Time time)
Sets the time.

Parameters:
time - The time to set

setTimestamp

public void setTimestamp(java.sql.Timestamp timestamp)
Sets the timestamp.

Parameters:
timestamp - The timestamp to set

getBigDecimal

public java.math.BigDecimal getBigDecimal()
Returns the bigDecimal.

Returns:
BigDecimal

getBigInteger

public java.math.BigInteger getBigInteger()
Returns the bigInteger.

Returns:
BigInteger

setBigDecimal

public void setBigDecimal(java.math.BigDecimal bigDecimal)
Sets the bigDecimal.

Parameters:
bigDecimal - The bigDecimal to set

setBigInteger

public void setBigInteger(java.math.BigInteger bigInteger)
Sets the bigInteger.

Parameters:
bigInteger - The bigInteger to set


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.