|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationContext
The context for validation
Method Summary | |
---|---|
BindContext |
getBindContext()
|
java.lang.String |
getCommand()
get the command that trigger the validation |
java.util.Map<java.lang.String,Property[]> |
getProperties()
get dependent properties that need to be validated. |
java.util.Map<java.lang.String,Property> |
getProperties(java.lang.Object base)
get dependent properties by a base object. |
Property[] |
getProperties(java.lang.String name)
get dependent properties by the property name. |
Property |
getProperty()
get the main property that need to be validated. |
java.lang.Object |
getValidatorArg(java.lang.String key)
Returns validator arg value of the given key This is a shortcut of getBindContext().getValidatorArg() |
boolean |
isValid()
is valid |
void |
setInvalid()
set invalid |
Method Detail |
---|
boolean isValid()
Validator
called setInvalid()
void setInvalid()
java.lang.String getCommand()
java.util.Map<java.lang.String,Property[]> getProperties()
Property[] getProperties(java.lang.String name)
name
- the property name
java.util.Map<java.lang.String,Property> getProperties(java.lang.Object base)
Map beanProps = ctx.getProperties(ctx.getProperty().getBase());
Map formProps = ctx.getProperties(ctx.getProperty().getValue());
base
- the base object of properties
java.lang.Object getValidatorArg(java.lang.String key)
getBindContext().getValidatorArg()
key
- the key to the value.
Property getProperty()
BindContext getBindContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |