ClosureModel (groovy 2.5.0 API)
Date: 2018-05-27

Package: groovy.model

## [Java] Class ClosureModel

- groovy.model.ClosureModel

- All Implemented Interfaces and Traits:
    NestedValueModel, ValueModel

      public class ClosureModel

  Represents a value model using a closure to extract the value from some source model and an optional write closure for updating the value.

  Authors:
    James Strachan

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `Object` | `value`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ClosureModel (ValueModel sourceModel, Closure readClosure)`
    `ClosureModel (ValueModel sourceModel, Closure readClosure, Closure writeClosure)`
    `ClosureModel (ValueModel sourceModel, Closure readClosure, Closure writeClosure, Class type)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `ValueModel` | `getSourceModel()`
    `` | `Class` | `getType()`
    `` | `Object` | `getValue()`
    `` | `boolean` | `isEditable()`
    `` | `void` | `setValue(Object value)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Property Detail

    - #### Object value

  - ### Constructor Detail

    - #### public ClosureModel(ValueModel sourceModel, Closure readClosure)

    - #### public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure)

    - #### public ClosureModel(ValueModel sourceModel, Closure readClosure, Closure writeClosure, Class type)

  - ### Method Detail

    - #### public ValueModel getSourceModel()

    - #### public Class getType()

    - #### public Object getValue()

    - #### public boolean isEditable()

    - #### public void setValue(Object value)