Method Summary |
|
public void | addArg(Arg arg) Add an Arg to the replacement argument list. |
public void | addMsg(Msg msg) Add a Msg to the Field . |
public void | addVar(Var v) Add a Var to the Field . |
public void | addVar(String name, String value, String jsType) Add a Var , based on the values passed in, to the
Field . |
public Object | clone() Creates and returns a copy of this object. |
public void | generateKey() Generate correct key value. |
public Arg | getArg(int position) Gets the default Arg object at the given position.
Parameters: position - Validation message argument's position. |
public Arg | getArg(String key, int position) Gets the Arg object at the given position. |
public Arg[] | getArgs(String key) Retrieves the Args for the given validator name.
Parameters: key - The validator's args to retrieve. |
public List | getDependencyList() Gets an unmodifiable List of the dependencies in the same
order they were defined in parameter passed to the setDepends() method. |
public String | getDepends() Gets the validation rules for this field as a comma separated list. |
public int | getFieldOrder() Gets the position of the Field in the validation list. |
public String | getIndexedListProperty() Gets the indexed property name of the field. |
public String | getIndexedProperty() Gets the indexed property name of the field. |
Object[] | getIndexedProperty(Object bean) Returns an indexed property from the object we're validating. |
public String | getKey() Gets a unique key based on the property and indexedProperty fields. |
public Msg | getMessage(String key) Retrieve a message object.
since: Validator 1.1.4 Parameters: key - Validation key. |
public Map | getMessages() The Field 's messages are returned as an
unmodifiable Map . |
public String | getMsg(String key) Retrieve a message value.
Parameters: key - Validation key. |
protected Map | getMsgMap() Returns a Map of String Msg names to Msg objects. |
public int | getPage() Gets the page value that the Field is associated with for
validation. |
public String | getProperty() Gets the property name of the field. |
public Var | getVar(String mainKey) Retrieve a variable. |
protected Map | getVarMap() Returns a Map of String Var names to Var objects. |
public String | getVarValue(String mainKey) Retrieve a variable's value. |
public Map | getVars() The Field 's variables are returned as an
unmodifiable Map . |
public boolean | isDependency(String validatorName) Checks if the validator is listed as a dependency.
Parameters: validatorName - Name of the validator to check. |
public boolean | isIndexed() If there is a value specified for the indexedProperty field then
true will be returned. |
void | process(Map globalConstants, Map constants) Replace constants with values in fields and process the depends field
to create the dependency Map . |
public void | setDepends(String depends) Sets the validation rules for this field as a comma separated list. |
public void | setFieldOrder(int fieldOrder) Sets the position of the Field in the validation list. |
public void | setIndexedListProperty(String indexedListProperty) Sets the indexed property name of the field. |
public void | setIndexedProperty(String indexedProperty) Sets the indexed property name of the field. |
public void | setKey(String key) Sets a unique key for the field. |
public void | setPage(int page) Sets the page value that the Field is associated with for
validation. |
public void | setProperty(String property) Sets the property name of the field. |
public String | toString() Returns a string representation of the object. |
public ValidatorResults | validate(Map params, Map actions) Run the configured validations on this field. |