org.ztemplates.validation
Class ZRegexValidator

java.lang.Object
  extended by org.ztemplates.validation.ZRegexValidator
All Implemented Interfaces:
ZIJavaScriptValidator, ZIValidator

public class ZRegexValidator
extends Object
implements ZIValidator, ZIJavaScriptValidator


Constructor Summary
ZRegexValidator(String regex, String message, ZProperty prop)
           
 
Method Summary
 String getJavaScriptMethodName()
          name of a JavaScript validation method to call for this validator
 String getMessage()
           
 String getRegex()
           
 void validate(ZMessages res)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZRegexValidator

public ZRegexValidator(String regex,
                       String message,
                       ZProperty prop)
Method Detail

validate

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

getRegex

public String getRegex()

getMessage

public String getMessage()

getJavaScriptMethodName

public String getJavaScriptMethodName()
Description copied from interface: ZIJavaScriptValidator
name of a JavaScript validation method to call for this validator

Specified by:
getJavaScriptMethodName in interface ZIJavaScriptValidator
Returns:


Copyright © 2011. All Rights Reserved.