org.codehaus.groovy.grails.web.binding
Class DataBindingUtils
java.lang.Object
org.codehaus.groovy.grails.web.binding.DataBindingUtils
public class DataBindingUtils
- extends java.lang.Object
Utility methods to perform data binding from Grails objects
- Since:
- 1.0
Created: Sep 13, 2007
Time: 2:34:11 PM
- Author:
- Graeme Rocher
Method Summary |
static org.springframework.validation.BindingResult |
bindObjectToInstance(java.lang.Object object,
java.lang.Object source)
Binds the given source object to the given target object performing type conversion if necessary |
static org.springframework.validation.BindingResult |
bindObjectToInstance(java.lang.Object object,
java.lang.Object source,
java.util.List include,
java.util.List exclude,
java.lang.String filter)
Binds the given source object to the given target object performing type conversion if necessary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataBindingUtils
public DataBindingUtils()
bindObjectToInstance
public static org.springframework.validation.BindingResult bindObjectToInstance(java.lang.Object object,
java.lang.Object source)
- Binds the given source object to the given target object performing type conversion if necessary
- Parameters:
object
- The object to bind tosource
- The source object
- Returns:
- A BindingResult or null if it wasn't successful
bindObjectToInstance
public static org.springframework.validation.BindingResult bindObjectToInstance(java.lang.Object object,
java.lang.Object source,
java.util.List include,
java.util.List exclude,
java.lang.String filter)
- Binds the given source object to the given target object performing type conversion if necessary
- Parameters:
object
- The object to bind tosource
- The source objectinclude
- The list of properties to includeexclude
- The list of properties to exclude
- Returns:
- A BindingResult or null if it wasn't successful
Copyright (c) 2005-2006 The Grails project