Commons Resources (Unofficial)
|
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class Var
- extends java.lang.Object
- implements java.lang.Cloneable, java.io.Serializable
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 |
public static final java.lang.String
- Int Constant for JavaScript type. This can be used
when auto-generating JavaScript.
- See Also:
-
Constant Field Values
public static final java.lang.String
- String Constant for JavaScript type. This can be used
when auto-generating JavaScript.
- See Also:
-
Constant Field Values
public static final java.lang.String
- Regular Expression Constant for JavaScript type. This can be used
when auto-generating JavaScript.
- See Also:
-
Constant Field Values
- The name of the variable.
- The optional JavaScript type of the variable.
public (java.lang.String name,
java.lang.String value,
java.lang.String jsType)
public java.lang.String ()
- Gets the name of the variable.
public void (java.lang.String name)
- Sets the name of the variable.
public java.lang.String ()
- Gets the value of the variable.
public void (java.lang.String value)
- Sets the value of the variable.
public java.lang.String ()
- Gets the JavaScript type of the variable.
public void (java.lang.String jsType)
- Sets the JavaScript type of the variable.
public java.lang.Object ()
- Creates and returns a copy of this object.
- Overrides:
clone in class java.lang.Object
public java.lang.String ()
- Returns a string representation of the object.
- Overrides:
toString in class java.lang.Object
Copyright (c) 2001-2002 - Apache Software Foundation
|