|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.gargoylesoftware.base.testing.SampleBean
A simple bean class that can be used for testing purposes. All properties fire PropertyChangeEvents when changed.
| Constructor Summary | |
SampleBean()
Create a new instance. |
|
SampleBean(String name,
int age)
Create a new instance. |
|
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener |
protected void |
assertNotNull(String fieldName,
Object fieldValue)
Verify that the specified value is not null. |
int |
getAge()
Return the age. |
String |
getName()
Return the name. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener |
void |
setAge(int age)
Set the age. |
void |
setName(String name)
Set the name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SampleBean()
public SampleBean(String name,
int age)
name - The name.age - The age.| Method Detail |
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener - The listenerpublic String getName()
public void setName(String name)
name - The new name.public int getAge()
public void setAge(int age)
age - The new age.
protected final void assertNotNull(String fieldName,
Object fieldValue)
throws DetailedNullPointerException
fieldName - The name of the field to checkfieldValue - The value of the field to check
DetailedNullPointerException - If fieldValue is null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||