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

Quick Search    Search Deep

org.progeeks.meta
Interface MetaObject  view MetaObject download MetaObject.java

All Known Implementing Classes:
AbstractMetaObject

public interface MetaObject

An abstract representation of an object that allows Map-like access to its properties.

Version:
$Revision: 1.4 $

Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a property change listener that will be notified whenever any of this object's properties change.
 void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
          Adds a property change listener that will be notified whenever the specified property changes.
 void clearAllListeners()
          Clears all listeners from this object.
 MetaClass getMetaClass()
          Returns the meta-class associated with this object.
 MetaKit getMetaKit()
          Returns the meta-kit for this meta-object's implementation layer.
 java.lang.Object getProperty(java.lang.String name)
          Returns the value of the specified property.
 PropertyMutator getPropertyMutator(java.lang.String name)
          Returns a mutator for the specified property.
 boolean hasListeners(java.lang.String propertyName)
          Returns true if the specified property name has listeners registered.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes a previously added property change listener.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l, boolean removeAll)
          Removes the property change listener.
 void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener l)
          Removes the property change listener from a specific property.
 void setProperty(java.lang.String name, java.lang.Object value)
          Sets the value of the specified property.
 

Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Sets the value of the specified property.


getProperty

public java.lang.Object getProperty(java.lang.String name)
Returns the value of the specified property.


getPropertyMutator

public PropertyMutator getPropertyMutator(java.lang.String name)
Returns a mutator for the specified property.


getMetaClass

public MetaClass getMetaClass()
Returns the meta-class associated with this object.


getMetaKit

public MetaKit getMetaKit()
Returns the meta-kit for this meta-object's implementation layer.


addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener that will be notified whenever any of this object's properties change.


addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String propertyName,
                                      java.beans.PropertyChangeListener l)
Adds a property change listener that will be notified whenever the specified property changes.


hasListeners

public boolean hasListeners(java.lang.String propertyName)
Returns true if the specified property name has listeners registered.


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a previously added property change listener.


removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String propertyName,
                                         java.beans.PropertyChangeListener l)
Removes the property change listener from a specific property.


removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l,
                                         boolean removeAll)
Removes the property change listener. If removeAll is true then it will be removed from any properties it is registered with.


clearAllListeners

public void clearAllListeners()
Clears all listeners from this object. This method is used to more easily "free" an object. It should be used with care since abuse can really mess things up.