Groovy Documentation

## org.codehaus.groovy.grails.commons.metaclass
[Java] Class BeanBinding

    java.lang.Object
      groovy.lang.GroovyObjectSupport
          groovy.lang.Binding
              org.codehaus.groovy.grails.commons.metaclass.BeanBinding

    public class BeanBinding
    extends groovy.lang.Binding

Extends Groovy's Binding Object to allow a binding to a particular bean where the properties of the Object become binding variables.

Authors:
  Graeme Rocher

Since:
  1.1

Constructor Summary
`BeanBinding(java.lang.Object bean)`

Method Summary
`java.lang.Object` | `getVariable(java.lang.String name)`
`java.util.Map` | `getVariables()`
`void` | `setVariable(java.lang.String name, java.lang.Object value)`

Methods inherited from class groovy.lang.Binding

groovy.lang.Binding#setProperty(java.lang.String, java.lang.Object), groovy.lang.Binding#getProperty(java.lang.String), groovy.lang.Binding#getVariables(), groovy.lang.Binding#getVariable(java.lang.String), groovy.lang.Binding#setVariable(java.lang.String, java.lang.Object), groovy.lang.Binding#getMetaClass(), groovy.lang.Binding#setMetaClass(groovy.lang.MetaClass), groovy.lang.Binding#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.Binding#wait(), groovy.lang.Binding#wait(long), groovy.lang.Binding#wait(long, int), groovy.lang.Binding#equals(java.lang.Object), groovy.lang.Binding#toString(), groovy.lang.Binding#hashCode(), groovy.lang.Binding#getClass(), groovy.lang.Binding#notify(), groovy.lang.Binding#notifyAll()

Methods inherited from class groovy.lang.GroovyObjectSupport

groovy.lang.GroovyObjectSupport#setProperty(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#getProperty(java.lang.String), groovy.lang.GroovyObjectSupport#getMetaClass(), groovy.lang.GroovyObjectSupport#setMetaClass(groovy.lang.MetaClass), groovy.lang.GroovyObjectSupport#invokeMethod(java.lang.String, java.lang.Object), groovy.lang.GroovyObjectSupport#wait(), groovy.lang.GroovyObjectSupport#wait(long), groovy.lang.GroovyObjectSupport#wait(long, int), groovy.lang.GroovyObjectSupport#equals(java.lang.Object), groovy.lang.GroovyObjectSupport#toString(), groovy.lang.GroovyObjectSupport#hashCode(), groovy.lang.GroovyObjectSupport#getClass(), groovy.lang.GroovyObjectSupport#notify(), groovy.lang.GroovyObjectSupport#notifyAll()

Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()

Constructor Detail

### BeanBinding

    public BeanBinding(java.lang.Object bean)

Method Detail

### getVariable

    @Override
    public java.lang.Object getVariable(java.lang.String name)

### getVariables

    @Override
    @SuppressWarnings("rawtypes")
    public java.util.Map getVariables()

### setVariable

    @Override
    public void setVariable(java.lang.String name, java.lang.Object value)

Groovy Documentation