Groovy 1.7.0

## groovy.model
Class ValueHolder

    java.lang.Object
      groovy.model.ValueHolder

All Implemented Interfaces:
  ValueModel

    class ValueHolder
    extends Object

A simple ValueModel implementation which is a holder of an object value. Used to share local variables with closures

author:
  James Strachan

version:
  $Revision: 7922 $

Constructor Summary
`ValueHolder()`
`ValueHolder(Class type)`
`ValueHolder(Object value)`

Method Summary
`void` | `addPropertyChangeListener(PropertyChangeListener listener)` Add a PropertyChangeListener to the listener list.
`Class` | `getType()`
`Object` | `getValue()`
`boolean` | `isEditable()`
`void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a PropertyChangeListener from the listener list.
`void` | `setEditable(boolean editable)`
`void` | `setValue(Object value)`

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Constructor Detail

### ValueHolder

    public ValueHolder()

### ValueHolder

    public ValueHolder(Class type)

### ValueHolder

    public ValueHolder(Object value)

Method Detail

### addPropertyChangeListener

    public void addPropertyChangeListener(PropertyChangeListener listener)

  Add a PropertyChangeListener to the listener list.
  param:
    listener The listener to add.

### getType

    public Class getType()

### getValue

    public Object getValue()

### isEditable

    public boolean isEditable()

### removePropertyChangeListener

    public void removePropertyChangeListener(PropertyChangeListener listener)

  Removes a PropertyChangeListener from the listener list.
  param:
    listener The listener to remove.

### setEditable

    public void setEditable(boolean editable)

### setValue

    public void setValue(Object value)

Copyright © 2003-2009 The Codehaus. All rights reserved.