Package org.zkoss.bind.validator
Class DeferredValidator
- java.lang.Object
-
- org.zkoss.bind.validator.DeferredValidator
-
- All Implemented Interfaces:
java.io.Serializable
,Validator
public class DeferredValidator extends java.lang.Object implements Validator, java.io.Serializable
A deferred validator that defers the initialization of the real validator, a validator needs 3-party jar files could still be installed if user doesn't provide it (ex, BeanValidator of JSR 303).- Since:
- 6.0.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeferredValidator(java.lang.Class<Validator> clz)
DeferredValidator(java.lang.String clzName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
void
validate(ValidationContext ctx)
-
-
-
Constructor Detail
-
DeferredValidator
public DeferredValidator(java.lang.String clzName)
-
DeferredValidator
public DeferredValidator(java.lang.Class<Validator> clz)
-
-
Method Detail
-
validate
public void validate(ValidationContext ctx)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-