|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.validator.Var
A variable can be associate with a Field
for
passing in information to a pluggable validator.
Field Summary | |
private java.lang.String |
jsType
The optional JavaScript type of the variable. |
static java.lang.String |
JSTYPE_INT
Int Constant for JavaScript type. |
static java.lang.String |
JSTYPE_REGEXP
Regular Expression Constant for JavaScript type. |
static java.lang.String |
JSTYPE_STRING
String Constant for JavaScript type. |
private java.lang.String |
name
The name of the variable. |
private java.lang.String |
value
The name of the value. |
Constructor Summary | |
Var()
|
|
Var(java.lang.String name,
java.lang.String value,
java.lang.String jsType)
|
Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
java.lang.String |
getJsType()
Gets the JavaScript type of the variable. |
java.lang.String |
getName()
Gets the name of the variable. |
java.lang.String |
getValue()
Gets the value of the variable. |
void |
setJsType(java.lang.String jsType)
Sets the JavaScript type of the variable. |
void |
setName(java.lang.String name)
Sets the name of the variable. |
void |
setValue(java.lang.String value)
Sets the value of the variable. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String JSTYPE_INT
public static final java.lang.String JSTYPE_STRING
public static final java.lang.String JSTYPE_REGEXP
private java.lang.String name
private java.lang.String value
private java.lang.String jsType
Constructor Detail |
public Var()
public Var(java.lang.String name, java.lang.String value, java.lang.String jsType)
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String getJsType()
public void setJsType(java.lang.String jsType)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |