org.springmodules.validation.commons
Class DefaultBeanValidator
java.lang.Object
org.springmodules.validation.commons.AbstractBeanValidator
org.springmodules.validation.commons.DefaultBeanValidator
- All Implemented Interfaces:
- Validator
public class DefaultBeanValidator
- extends AbstractBeanValidator
- Author:
- Daniel Miller, Rob Harrop
Method Summary |
protected String |
getFormName(Class cls)
If useFullyQualifiedClassName is false (default value), this function returns a
string containing the uncapitalized, short name for the given class
(e.g. myBean for the class com.domain.test.MyBean). |
void |
setUseFullyQualifiedClassName(boolean useFullyQualifiedClassName)
Sets the value of the useFullyQualifiedClassName . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultBeanValidator
public DefaultBeanValidator()
setUseFullyQualifiedClassName
public void setUseFullyQualifiedClassName(boolean useFullyQualifiedClassName)
- Sets the value of the
useFullyQualifiedClassName
.
getFormName
protected String getFormName(Class cls)
- If
useFullyQualifiedClassName
is false (default value), this function returns a
string containing the uncapitalized, short name for the given class
(e.g. myBean for the class com.domain.test.MyBean). Otherwise, it returns the value
returned by Class.getName()
.
- Specified by:
getFormName
in class AbstractBeanValidator
- Parameters:
cls
- Class
of the bean to be validated.
- Returns:
- the bean name.
Copyright © 2009. All Rights Reserved.