public class SampleBean extends Object implements Serializable
Constructor and Description |
---|
SampleBean()
Create a new instance.
|
SampleBean(String name,
int age)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SampleBean()
public SampleBean(String name, int age)
name
- The name.age
- The age.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 checkDetailedNullPointerException
- If fieldValue is nullCopyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.