org.apache.commons.validator
public class Var extends Object implements Cloneable, Serializable
Field for
passing in information to a pluggable validator. Instances of this class are
configured with a <var> xml element.
| Field Summary | |
|---|---|
| String | jsType
The optional JavaScript type of the variable. |
| static String | JSTYPE_INT
Int Constant for JavaScript type. |
| static String | JSTYPE_REGEXP
Regular Expression Constant for JavaScript type. |
| static String | JSTYPE_STRING
String Constant for JavaScript type. |
| String | name
The name of the variable. |
| String | value
The name of the value. |
| Constructor Summary | |
|---|---|
| Var() | |
| Var(String name, String value, String jsType) | |
| Method Summary | |
|---|---|
| Object | clone()
Creates and returns a copy of this object. |
| String | getJsType()
Gets the JavaScript type of the variable. |
| String | getName()
Gets the name of the variable. |
| String | getValue()
Gets the value of the variable. |
| void | setJsType(String jsType)
Sets the JavaScript type of the variable. |
| void | setName(String name)
Sets the name of the variable. |
| void | setValue(String value)
Sets the value of the variable. |
| String | toString()
Returns a string representation of the object. |