terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.api
Class Rvalue.PropertyHolder<T>

java.lang.Object
  extended by com.codemesh.terp.api.Rvalue.AbstractRvalue
      extended by com.codemesh.terp.api.Rvalue.PropertyHolder<T>
All Implemented Interfaces:
Rvalue
Enclosing interface:
Rvalue

public static class Rvalue.PropertyHolder<T>
extends Rvalue.AbstractRvalue

A hoder type that can be used to provide a level of indirection for collections. When a collection is modified by one agent and another agent is interested in changes to that collection, this type allows us to connect these two without tightly coupling them. The PropertyHolder wraps around the collection and provides a terp-transparent interface for the collection.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.codemesh.terp.api.Rvalue
Rvalue.AbstractRvalue, Rvalue.FieldInvoker, Rvalue.ForMap, Rvalue.Holder, Rvalue.MethodInvoker, Rvalue.PropertyHolder<T>
 
Constructor Summary
Rvalue.PropertyHolder(T obj)
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 void firePropertyChange(java.lang.String name)
           
 T get()
          Returns the value referenced by the instance.
 java.beans.PropertyChangeListener[] getPropertyChangeListeners()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 
Methods inherited from class com.codemesh.terp.api.Rvalue.AbstractRvalue
toLvalue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rvalue.PropertyHolder

public Rvalue.PropertyHolder(T obj)
Method Detail

get

public T get()
Description copied from interface: Rvalue
Returns the value referenced by the instance.

Returns:
the dereferenced value.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)

getPropertyChangeListeners

public java.beans.PropertyChangeListener[] getPropertyChangeListeners()

firePropertyChange

public void firePropertyChange(java.lang.String name)

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.