Package org.apache.tapestry5.internal
Interface BeanValidationContext
-
- All Known Implementing Classes:
BeanValidationContextImpl
public interface BeanValidationContext
Defines a context for validating beans.- Since:
- 5.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getBeanInstance()
Return the object to validate.java.lang.Class
getBeanType()
Returns the type of the object to validate.java.lang.String
getCurrentProperty()
Returns name of the property to validate.void
setCurrentProperty(java.lang.String propertyName)
Sets name of the property to validate.
-
-
-
Method Detail
-
getBeanType
java.lang.Class getBeanType()
Returns the type of the object to validate. This method is needed for client side validation.
-
getBeanInstance
java.lang.Object getBeanInstance()
Return the object to validate.
-
getCurrentProperty
java.lang.String getCurrentProperty()
Returns name of the property to validate. The current name is overwritten by every form field.
-
setCurrentProperty
void setCurrentProperty(java.lang.String propertyName)
Sets name of the property to validate.- Parameters:
propertyName
- name of the property
-
-