Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.progeeks.meta
Class DefaultPropertyMutator  view DefaultPropertyMutator download DefaultPropertyMutator.java

java.lang.Object
  extended byorg.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 $

Field Summary
private  MetaObject metaObject
           
private  java.lang.String propertyName
           
 
Constructor Summary
DefaultPropertyMutator(java.lang.String propertyName, MetaObject metaObject)
           
 
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
 

Field Detail

propertyName

private java.lang.String propertyName

metaObject

private MetaObject metaObject
Constructor Detail

DefaultPropertyMutator

public DefaultPropertyMutator(java.lang.String propertyName,
                              MetaObject metaObject)
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