com.gargoylesoftware.base.testing
public class SampleBean extends Object implements Serializable
Version: $Revision: 1.3 $
Field Summary | |
---|---|
int | age_ |
String | name_ |
PropertyChangeSupport | propertyChangeSupport_ |
static long | serialVersionUID |
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. |
Parameters: name The name. age The age.
Parameters: listener The listener
Parameters: fieldName The name of the field to check fieldValue The value of the field to check
Throws: DetailedNullPointerException If fieldValue is null
Returns: The age.
Returns: The name
Parameters: listener The listener
Parameters: age The new age.
Parameters: name The new name.