org.progeeks.meta.util
Class PropertyMutatorWrapper

java.lang.Object
  extended by org.progeeks.meta.util.PropertyMutatorWrapper
All Implemented Interfaces:
PropertyMutator

public class PropertyMutatorWrapper
extends java.lang.Object
implements PropertyMutator

Base class for providing a wrapper for a property mutator. This is done in cases where a different view is provided for a real property mutator such as in the CompositeMetaObjects and RemappedMetaObjects.

Version:
$Revision: 1.1 $
Author:
Paul Speed

Constructor Summary
PropertyMutatorWrapper(java.lang.String propertyName, MetaObject parent, PropertyMutator delegate)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds the specified PropertyChangeListener to this mutator.
 MetaObject getParentObject()
          Returns the object that contains this property.
 PropertyInfo getPropertyInfo()
          Returns the info associated with this property.
 java.lang.String getPropertyName()
          Returns the name of this property.
 java.lang.Object getValue()
          Returns the value of this property.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes the specified PropertyChangeListener from this mutator.
 void setValue(java.lang.Object value)
          Resets the value of this property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMutatorWrapper

public PropertyMutatorWrapper(java.lang.String propertyName,
                              MetaObject parent,
                              PropertyMutator delegate)
Method Detail

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


Copyright © 2002-2003 Paul Speed. All Rights Reserved.