org.codehaus.groovy.grails.web.binding
Class DatabindingApi

java.lang.Object
  extended by org.codehaus.groovy.grails.web.binding.DatabindingApi

public class DatabindingApi
extends java.lang.Object


Constructor Summary
DatabindingApi()
           
 
Method Summary
 java.util.Map<?,?> getProperties(java.lang.Object instance)
          Returns a map of the objects properties that can be used to during binding to bind a subset of properties
 org.springframework.validation.BindingResult setProperties(java.lang.Object instance, java.lang.Object bindingSource)
          Binds the source object to the properties of the target instance converting any types as necessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabindingApi

public DatabindingApi()
Method Detail

setProperties

public org.springframework.validation.BindingResult setProperties(java.lang.Object instance,
                                                                  java.lang.Object bindingSource)
Binds the source object to the properties of the target instance converting any types as necessary

Parameters:
instance - The instance
bindingSource - The binding source
Returns:
The BindingResult

getProperties

public java.util.Map<?,?> getProperties(java.lang.Object instance)
Returns a map of the objects properties that can be used to during binding to bind a subset of properties

Parameters:
instance - The instance
Returns:
An instance of DataBindingLazyMetaPropertyMap