public class ConfigurablePageBeanValidator extends AbstractPageBeanValidator
Constructor and Description |
---|
ConfigurablePageBeanValidator()
Default constructor (javabean support)
|
ConfigurablePageBeanValidator(int page)
Constructs a new DefaultPageBeanValidator with a given page to validate.
|
Modifier and Type | Method and Description |
---|---|
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 |
setFormName(String formName) |
cleanupValidator, getPage, initValidator, setPage
getLocale, setValidatorFactory, supports, validate
public ConfigurablePageBeanValidator()
public ConfigurablePageBeanValidator(int page)
page
- The page that should be validated by this validator.protected String getFormName(Class cls)
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()
.getFormName
in class AbstractBeanValidator
cls
- Class
of the bean to be validated.public void setFormName(String formName)
Copyright © 2008-2013 Spring by Example. All Rights Reserved.