public interface ValidationContext<T extends ValidationListener>
| Modifier and Type | Method and Description |
|---|---|
boolean |
collectValidated()
Avoid recursion by recording the current state of this context as having been validated.
|
AccessStrategy |
getAccess()
Get the current access strategy.
|
Object |
getBean()
Get the bean.
|
T |
getListener()
Get the
ValidationListener. |
MetaBean |
getMetaBean()
Get the model meta-bean.
|
MetaProperty |
getMetaProperty()
Get the model meta-property.
|
String |
getPropertyName()
Get the property name.
|
Object |
getPropertyValue()
Get the property value.
|
Object |
getPropertyValue(AccessStrategy access)
Get the value by using the given access strategy.
|
void |
moveDown(MetaProperty prop,
AccessStrategy access)
Step deeper into association at 'prop'
|
void |
moveDown(String prop) |
void |
moveUp(Object bean,
MetaBean metaBean)
Step out from a validation of associated objects.
|
void |
setBean(Object bean)
Set the bean.
|
void |
setBean(Object aBean,
MetaBean aMetaBean)
Set the current bean/metabean.
|
void |
setCurrentIndex(Integer index)
Set the index of the object currently validated into the context.
|
void |
setCurrentKey(Object key)
set the key of the object in a map currently validated into the context.
|
void |
setMetaBean(MetaBean metaBean)
Set the model meta-bean.
|
void |
setMetaProperty(MetaProperty metaProperty)
Set the current meta-property.
|
Object getPropertyValue(AccessStrategy access)
access - ObjectT getListener()
ValidationListener.void setMetaBean(MetaBean metaBean)
metaBean - MetaProperty getMetaProperty()
MetaPropertyvoid setBean(Object bean)
bean - boolean collectValidated()
void setBean(Object aBean, MetaBean aMetaBean)
aBean - aMetaBean - void setMetaProperty(MetaProperty metaProperty)
metaProperty - void moveDown(MetaProperty prop, AccessStrategy access)
prop - access - void moveDown(String prop)
void moveUp(Object bean, MetaBean metaBean)
bean - metaBean - void setCurrentIndex(Integer index)
index - void setCurrentKey(Object key)
key - AccessStrategy getAccess()
AccessStrategyCopyright © 2010–2024 The Apache Software Foundation. All rights reserved.