org.ztemplates.validation
Class ZLengthValidator

java.lang.Object
  extended by org.ztemplates.validation.ZLengthValidator
All Implemented Interfaces:
ZIValidator
Direct Known Subclasses:
ZMaxLengthValidator, ZMinLengthValidator

public class ZLengthValidator
extends Object
implements ZIValidator


Constructor Summary
ZLengthValidator(int minlength, int maxlength, String message, ZProperty<String> prop)
           
 
Method Summary
 void validate(ZMessages messages)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZLengthValidator

public ZLengthValidator(int minlength,
                        int maxlength,
                        String message,
                        ZProperty<String> prop)
Method Detail

validate

public void validate(ZMessages messages)
              throws Exception
Specified by:
validate in interface ZIValidator
Throws:
Exception


Copyright © 2011. All Rights Reserved.