Method Summary |
|
boolean | executeValidationMethod(Field field, Map params, ValidatorResults results, int pos) Dynamically runs the validation method for this validator and returns
true if the data is valid. |
public String | getClassname() Gets the class of the validator action. |
public List | getDependencyList() Returns the dependent validator names as an unmodifiable
List . |
public String | getDepends() Gets the dependencies of the validator action as a comma separated list
of validator names. |
public String | getJavascript() Gets the Javascript equivalent of the java class and method
associated with this action. |
public String | getJsFunctionName() Gets the Javascript function name. |
public String | getMethod() Gets the name of method being called for the validator action. |
public String | getMethodParams() Gets the method parameters for the method. |
public String | getMsg() Gets the message associated with the validator action. |
public String | getName() Gets the name of the validator action. |
protected void | init() Initialize based on set. |
public boolean | isDependency(String validatorName) Checks whether or not the value passed in is in the depends field.
Parameters: validatorName - Name of the dependency to check. |
protected synchronized void | loadJavascriptFunction() Load the javascript function specified by the given path. |
public void | setClassname(String classname) Sets the class of the validator action. |
public void | setDepends(String depends) Sets the dependencies of the validator action. |
public void | setJavascript(String javascript) Sets the Javascript equivalent of the java class and method
associated with this action. |
public void | setJsFunction(String jsFunction) Sets the fully qualified class path of the Javascript function.
This is optional and can be used instead of the setJavascript().
Attempting to call both setJsFunction and setJavascript
will result in an IllegalStateException being thrown. |
public void | setJsFunctionName(String jsFunctionName) Sets the Javascript function name. |
public void | setMethod(String method) Sets the name of method being called for the validator action. |
public void | setMethodParams(String methodParams) Sets the method parameters for the method. |
public void | setMsg(String msg) Sets the message associated with the validator action. |
public void | setName(String name) Sets the name of the validator action. |
public String | toString() Returns a string representation of the object. |