Package: groovy.model

## [Java] Class ClosureModel

- groovy.model.ClosureModel

- All Implemented Interfaces and Traits:
    NestedValueModel, ValueModel

      @com.github.javaparser.ast.expr.MarkerAnnotationExprDeprecated
      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.

- - ### 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`

- - ### 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)