java.lang.Object
org.progeeks.meta.DefaultPropertyMutator
- All Implemented Interfaces:
- PropertyMutator
- public class DefaultPropertyMutator
- extends java.lang.Object
- implements PropertyMutator
A default implementation of PropertyMutator that will work
with any MetaObject. It can be used as an implementation
on its own or subclassed to provide performance improvements
in metakit specific cases.
- Version:
- $Revision: 1.1 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyName
private java.lang.String propertyName
metaObject
private MetaObject metaObject
DefaultPropertyMutator
public DefaultPropertyMutator(java.lang.String propertyName,
MetaObject metaObject)
getPropertyName
public java.lang.String getPropertyName()
- Returns the name of this property.
- Specified by:
getPropertyName in interface PropertyMutator
getParentObject
public MetaObject getParentObject()
- Returns the object that contains this property.
- Specified by:
getParentObject in interface PropertyMutator
getPropertyInfo
public PropertyInfo getPropertyInfo()
- Returns the info associated with this property.
- Specified by:
getPropertyInfo in interface PropertyMutator
getValue
public java.lang.Object getValue()
- Returns the value of this property.
- Specified by:
getValue in interface PropertyMutator
setValue
public void setValue(java.lang.Object value)
- Resets the value of this property.
- Specified by:
setValue in interface PropertyMutator
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
- Adds the specified PropertyChangeListener to this
mutator.
- Specified by:
addPropertyChangeListener in interface PropertyMutator
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
- Removes the specified PropertyChangeListener from this
mutator.
- Specified by:
removePropertyChangeListener in interface PropertyMutator