|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationContext<T extends ValidationListener>
Description: Interface of the context that holds all state information
during the validation process
Method Summary | |
---|---|
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 |
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. |
Method Detail |
---|
Object getPropertyValue()
Object
Object getPropertyValue(AccessStrategy access)
access
-
Object
String getPropertyName()
String
T getListener()
ValidationListener
.
Object getBean()
Object
MetaBean getMetaBean()
MetaBean
void setMetaBean(MetaBean metaBean)
metaBean
- MetaProperty getMetaProperty()
MetaProperty
void 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 moveUp(Object bean, MetaBean metaBean)
bean
- metaBean
- void setCurrentIndex(Integer index)
index
- void setCurrentKey(Object key)
key
- AccessStrategy getAccess()
AccessStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |