Package org.apache.tapestry5.internal
Class BeanValidationContextImpl
java.lang.Object
org.apache.tapestry5.internal.BeanValidationContextImpl
- All Implemented Interfaces:
BeanValidationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the object to validate.Returns the type of the object to validate.Returns name of the property to validate.void
setCurrentProperty
(String propertyName) Sets name of the property to validate.
-
Constructor Details
-
BeanValidationContextImpl
-
-
Method Details
-
getBeanType
Description copied from interface:BeanValidationContext
Returns the type of the object to validate. This method is needed for client side validation.- Specified by:
getBeanType
in interfaceBeanValidationContext
-
getBeanInstance
Description copied from interface:BeanValidationContext
Return the object to validate.- Specified by:
getBeanInstance
in interfaceBeanValidationContext
-
getCurrentProperty
Description copied from interface:BeanValidationContext
Returns name of the property to validate. The current name is overwritten by every form field.- Specified by:
getCurrentProperty
in interfaceBeanValidationContext
-
setCurrentProperty
Description copied from interface:BeanValidationContext
Sets name of the property to validate.- Specified by:
setCurrentProperty
in interfaceBeanValidationContext
- Parameters:
propertyName
- name of the property
-