org.ztemplates.validation
Class ZFormValidator

java.lang.Object
  extended by org.ztemplates.validation.ZFormValidator
All Implemented Interfaces:
ZIValidator

public class ZFormValidator
extends Object
implements ZIValidator


Constructor Summary
ZFormValidator(ZIForm form, String requiredMessage)
           
 
Method Summary
static ZMessages validate(ZIForm form, String requiredMessage)
          Convenience method
static void validate(ZIForm form, String requiredMessage, ZMessages messages)
          Convenience method
 void validate(ZMessages messages)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZFormValidator

public ZFormValidator(ZIForm form,
                      String requiredMessage)
Method Detail

validate

public static void validate(ZIForm form,
                            String requiredMessage,
                            ZMessages messages)
                     throws Exception
Convenience method

Parameters:
form -
requiredMessage -
Throws:
Exception

validate

public static ZMessages validate(ZIForm form,
                                 String requiredMessage)
                          throws Exception
Convenience method

Parameters:
form -
requiredMessage -
Returns:
Throws:
Exception

validate

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


Copyright © 2011. All Rights Reserved.