Package jadex.bdi.testcases.beliefs
Class TestBean
- java.lang.Object
-
- jadex.bdi.testcases.beliefs.TestBean
-
public class TestBean extends java.lang.Object
The test bean has an attribute that fires a bean property event when the attribute value is changed.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
name
The beans name.SimplePropertyChangeSupport
pcs
The helper object for bean events.
-
Constructor Summary
Constructors Constructor Description TestBean(java.lang.String name)
Create a new test bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener()
Spurious method to test reflective access.void
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.void
addPropertyChangeListener(PropertyChangeListener listener, java.lang.Object arg2)
Spurious method to test reflective access.void
addPropertyChangeListener(java.lang.Object listener)
Spurious method to test reflective access.void
addPropertyChangeListener(java.lang.Object arg0, PropertyChangeListener listener)
Spurious method to test reflective access.java.lang.String
getName()
Get the name.void
removePropertyChangeListener()
Spurious method to test reflective access.void
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.void
removePropertyChangeListener(PropertyChangeListener listener, java.lang.Object arg2)
Spurious method to test reflective access.void
removePropertyChangeListener(java.lang.Object listener)
Spurious method to test reflective access.void
removePropertyChangeListener(java.lang.Object arg0, PropertyChangeListener listener)
Spurious method to test reflective access.void
setName(java.lang.String name)
Set the name.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
name
public java.lang.String name
The beans name.
-
pcs
public SimplePropertyChangeSupport pcs
The helper object for bean events.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. The listener is registered for all properties.- Parameters:
listener
- The PropertyChangeListener to be added.
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.- Parameters:
listener
- The PropertyChangeListener to be removed.
-
addPropertyChangeListener
public void addPropertyChangeListener()
Spurious method to test reflective access.
-
removePropertyChangeListener
public void removePropertyChangeListener()
Spurious method to test reflective access.
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.Object listener)
Spurious method to test reflective access.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.Object listener)
Spurious method to test reflective access.
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener, java.lang.Object arg2)
Spurious method to test reflective access.
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener, java.lang.Object arg2)
Spurious method to test reflective access.
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.Object arg0, PropertyChangeListener listener)
Spurious method to test reflective access.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.Object arg0, PropertyChangeListener listener)
Spurious method to test reflective access.
-
-