Example usage for Java org.apache.commons.validator Field fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addArg(Arg arg) Add an Arg to the replacement argument list. |
void | addMsg(Msg msg) Add a Msg to the Field . |
void | addVar(Var v) Add a Var to the Field . |
void | addVar(String name, String value, String jsType) Add a Var , based on the values passed in, to the Field . |
Object | clone() Creates and returns a copy of this object. |
Arg | getArg(int position) Gets the default Arg object at the given position. |
Arg | getArg(String key, int position) Gets the Arg object at the given position. |
Arg[] | getArgs(String key) Retrieves the Args for the given validator name. |
List | getDependencyList() Gets an unmodifiable List of the dependencies in the same order they were defined in parameter passed to the setDepends() method. |
String | getIndexedListProperty() Gets the indexed property name of the field. |
String | getKey() Gets a unique key based on the property and indexedProperty fields. |
Msg | getMessage(String key) Retrieve a message object. |
String | getMsg(String key) Retrieve a message value. |
int | getPage() Gets the page value that the Field is associated with for validation. |
String | getProperty() Gets the property name of the field. |
Var | getVar(String mainKey) Retrieve a variable. |
Map | getVars() The Field 's variables are returned as an unmodifiable Map . |
String | getVarValue(String mainKey) Retrieve a variable's value. |
boolean | isDependency(String validatorName) Checks if the validator is listed as a dependency. |
boolean | isIndexed() If there is a value specified for the indexedProperty field then true will be returned. |
void | setDepends(String depends) Sets the validation rules for this field as a comma separated list. |
void | setIndexedListProperty(String indexedListProperty) Sets the indexed property name of the field. |
void | setKey(String key) Sets a unique key for the field. |
void | setProperty(String property) Sets the property name of the field. |