|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.impl.ValidationContextImpl
public class ValidationContextImpl
the default implementation of validation context
Constructor Summary | |
---|---|
ValidationContextImpl(java.lang.String command,
Property property,
java.util.Map<java.lang.String,Property[]> properties,
BindContext ctx,
boolean valid)
|
Method Summary | |
---|---|
BindContext |
getBindContext()
|
java.lang.String |
getCommand()
get the command that trigger the validation |
java.lang.String |
getMessage(Property property)
|
java.util.Map<java.lang.String,Property[]> |
getProperties()
get collected properties that need to be validated. |
Property[] |
getProperties(java.lang.String name)
get collected properties that need to be validated by a property name. |
Property |
getProperty()
get the main property that need to be validated. |
boolean |
isValid()
is valid |
void |
setInvalid()
set invalid |
void |
setMessage(Property property,
java.lang.String message)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationContextImpl(java.lang.String command, Property property, java.util.Map<java.lang.String,Property[]> properties, BindContext ctx, boolean valid)
Method Detail |
---|
public BindContext getBindContext()
getBindContext
in interface ValidationContext
public java.lang.String getCommand()
ValidationContext
getCommand
in interface ValidationContext
public java.util.Map<java.lang.String,Property[]> getProperties()
ValidationContext
getProperties
in interface ValidationContext
public Property[] getProperties(java.lang.String name)
ValidationContext
getProperties
in interface ValidationContext
name
- the property name
public Property getProperty()
ValidationContext
getProperty
in interface ValidationContext
public boolean isValid()
ValidationContext
isValid
in interface ValidationContext
Validator
called ValidationContext.setInvalid()
public void setInvalid()
ValidationContext
setInvalid
in interface ValidationContext
public void setMessage(Property property, java.lang.String message)
public java.lang.String getMessage(Property property)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |