public class SimplePropertyObject extends Object implements IPropertyObject
Constructor and Description |
---|
SimplePropertyObject()
Create a new property object.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
Map |
getProperties()
Get the properties (bean accessor).
|
Object |
getProperty(String name)
Returns a property.
|
Set |
getPropertyNames()
Returns all of the properties.
|
boolean |
hasProperty(String name)
Tests if the given property name exists
If an property is
null it exists |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
setProperties(Map properties)
Set the properties (bean accessor).
|
void |
setProperty(String name,
Object value)
Sets a property
|
String |
toString()
Get the string representation.
|
public Object getProperty(String name)
getProperty
in interface IPropertyObject
name
- name of the propertypublic Set getPropertyNames()
getPropertyNames
in interface IPropertyObject
public void setProperty(String name, Object value)
setProperty
in interface IPropertyObject
name
- name of the propertyvalue
- value of the propertypublic boolean hasProperty(String name)
IPropertyObject
null
it existshasProperty
in interface IPropertyObject
name
- the name of the property to testtrue
if and only if the property existspublic Map getProperties()
public void setProperties(Map properties)
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.Copyright © 2013. All Rights Reserved.