Package org.apache.tapestry5.internal
Class BeanValidationContextImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.BeanValidationContextImpl
-
- All Implemented Interfaces:
BeanValidationContext
public class BeanValidationContextImpl extends Object implements BeanValidationContext
-
-
Constructor Summary
Constructors Constructor Description BeanValidationContextImpl(Object bean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetBeanInstance()Return the object to validate.ClassgetBeanType()Returns the type of the object to validate.StringgetCurrentProperty()Returns name of the property to validate.voidsetCurrentProperty(String propertyName)Sets name of the property to validate.
-
-
-
Constructor Detail
-
BeanValidationContextImpl
public BeanValidationContextImpl(Object bean)
-
-
Method Detail
-
getBeanType
public Class getBeanType()
Description copied from interface:BeanValidationContextReturns the type of the object to validate. This method is needed for client side validation.- Specified by:
getBeanTypein interfaceBeanValidationContext
-
getBeanInstance
public Object getBeanInstance()
Description copied from interface:BeanValidationContextReturn the object to validate.- Specified by:
getBeanInstancein interfaceBeanValidationContext
-
getCurrentProperty
public String getCurrentProperty()
Description copied from interface:BeanValidationContextReturns name of the property to validate. The current name is overwritten by every form field.- Specified by:
getCurrentPropertyin interfaceBeanValidationContext
-
setCurrentProperty
public void setCurrentProperty(String propertyName)
Description copied from interface:BeanValidationContextSets name of the property to validate.- Specified by:
setCurrentPropertyin interfaceBeanValidationContext- Parameters:
propertyName- name of the property
-
-