public abstract class SynchronizedPropertyObject
extends jadex.commons.meta.TypedPropertyObject
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
monitor
The monitor.
|
Constructor and Description |
---|
SynchronizedPropertyObject(jadex.commons.meta.IPropertyMetaDataSet propertiesMeta,
java.lang.Object monitor)
Initializes the PropertyHolder, should be called by subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
java.lang.Object |
getMonitor()
Returns the monitor.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns a property.
|
java.util.Set |
getPropertyNames()
Returns all of the properties.
|
boolean |
hasProperty(java.lang.String name)
Test if has a property.
|
void |
removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a property
|
public SynchronizedPropertyObject(jadex.commons.meta.IPropertyMetaDataSet propertiesMeta, java.lang.Object monitor)
monitor
- the monitorpublic java.lang.Object getProperty(java.lang.String name)
getProperty
in interface jadex.commons.IPropertyObject
getProperty
in class jadex.commons.SimplePropertyObject
name
- name of the propertypublic java.util.Set getPropertyNames()
getPropertyNames
in interface jadex.commons.IPropertyObject
getPropertyNames
in class jadex.commons.SimplePropertyObject
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface jadex.commons.IPropertyObject
setProperty
in class jadex.commons.SimplePropertyObject
name
- name of the propertyvalue
- value of the propertypublic boolean hasProperty(java.lang.String name)
hasProperty
in interface jadex.commons.IPropertyObject
hasProperty
in class jadex.commons.SimplePropertyObject
public java.lang.Object getMonitor()
public void addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
addPropertyChangeListener
in class jadex.commons.SimplePropertyObject
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
removePropertyChangeListener
in class jadex.commons.SimplePropertyObject
listener
- The PropertyChangeListener to be removed.