Package jadex.commons
Class SimplePropertyObject
- java.lang.Object
- 
- jadex.commons.SimplePropertyObject
 
- 
- All Implemented Interfaces:
- IPropertyObject
 - Direct Known Subclasses:
- AbstractChartDataConsumer,- AbstractInteractionPlugin,- AbstractTask,- BurnWasteAction,- BurnWasteAction,- CreateCollectionTruckProcess,- CSVFileDataConsumer,- DefaultBDIVisionProcessor,- DefaultBDIVisionProcessor,- DefaultObjectCreationProcess,- DefaultVisionGenerator,- DefaultVisionGenerator,- DeltaTimeExecutor,- DiffusionProcess,- DropWasteAction,- DropWasteAction,- DropWasteAction,- EatAction,- EatAction,- EmptyWastebinAction,- EvaluationPlugin,- GameOfLifeProcess,- GetPosition,- GetPosition,- GoAction,- GoAction,- MicroPreyVisionProcessor,- MoveAction,- MoveAction,- MoveAction,- MoveAction,- PickupWasteAction,- PickupWasteAction,- PickupWasteAction,- RoundBasedExecutor,- ServiceVisionProcessor,- SetPosition,- SetPosition,- Space2D.KdTreeProcess,- TypedPropertyObject
 
 public class SimplePropertyObject extends java.lang.Object implements IPropertyObject Basic IPropertyObject implementation.
- 
- 
Field SummaryFields Modifier and Type Field Description protected SimplePropertyChangeSupportpcsThe property change support.protected java.util.MappropertiesThe properties
 - 
Constructor SummaryConstructors Constructor Description SimplePropertyObject()Create a new property object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener listener)Add a PropertyChangeListener to the listener list.java.util.MapgetProperties()Get the properties (bean accessor).java.lang.ObjectgetProperty(java.lang.String name)Returns a property.java.util.SetgetPropertyNames()Returns all of the properties.booleanhasProperty(java.lang.String name)Tests if the given property name exists If an property isnullit existsvoidremovePropertyChangeListener(PropertyChangeListener listener)Remove a PropertyChangeListener from the listener list.voidsetProperties(java.util.Map properties)Set the properties (bean accessor).voidsetProperty(java.lang.String name, java.lang.Object value)Sets a propertyjava.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
propertiesprotected java.util.Map properties The properties
 - 
pcsprotected SimplePropertyChangeSupport pcs The property change support.
 
- 
 - 
Method Detail- 
getPropertypublic java.lang.Object getProperty(java.lang.String name) Returns a property.- Specified by:
- getPropertyin interface- IPropertyObject
- Parameters:
- name- name of the property
- Returns:
- the property
 
 - 
getPropertyNamespublic java.util.Set getPropertyNames() Returns all of the properties.- Specified by:
- getPropertyNamesin interface- IPropertyObject
- Returns:
- the properties
 
 - 
setPropertypublic void setProperty(java.lang.String name, java.lang.Object value)Sets a property- Specified by:
- setPropertyin interface- IPropertyObject
- Parameters:
- name- name of the property
- value- value of the property
 
 - 
hasPropertypublic boolean hasProperty(java.lang.String name) Description copied from interface:IPropertyObjectTests if the given property name exists If an property isnullit exists- Specified by:
- hasPropertyin interface- IPropertyObject
- Parameters:
- name- the name of the property to test
- Returns:
- trueif and only if the property exists
 
 - 
getPropertiespublic java.util.Map getProperties() Get the properties (bean accessor).
 - 
setPropertiespublic void setProperties(java.util.Map properties) Set the properties (bean accessor).
 - 
addPropertyChangeListenerpublic 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.
 
 - 
removePropertyChangeListenerpublic 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.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-