java.io.Serializable
, java.lang.Cloneable
public class Var
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
Field
for
passing in information to a pluggable validator. Instances of this class are
configured with a <var> xml element.Modifier and Type | Field | Description |
---|---|---|
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.
|
Constructor | Description |
---|---|
Var() |
Default Constructor.
|
Var(java.lang.String name,
java.lang.String value,
java.lang.String jsType) |
Constructs a variable with a specified name, value
and Javascript type.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Creates and returns a copy of this object.
|
java.lang.String |
getBundle() |
Returns the resource bundle name.
|
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.
|
boolean |
isResource() |
Tests whether or not the value is a resource key or literal value.
|
void |
setBundle(java.lang.String bundle) |
Sets the resource bundle name.
|
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 |
setResource(boolean resource) |
Sets whether or not the value is a resource.
|
void |
setValue(java.lang.String value) |
Sets the value of the variable.
|
java.lang.String |
toString() |
Returns a string representation of the object.
|
public static final java.lang.String JSTYPE_INT
public static final java.lang.String JSTYPE_STRING
public static final java.lang.String JSTYPE_REGEXP
public Var()
public Var(java.lang.String name, java.lang.String value, java.lang.String jsType)
name
- Variable name.value
- Variable value.jsType
- Variable Javascript type.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the variable.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value of the variable.public boolean isResource()
true
if value is a resource key.public void setResource(boolean resource)
resource
- If true indicates the value is a resource.public java.lang.String getBundle()
public void setBundle(java.lang.String bundle)
bundle
- The new bundle name.public java.lang.String getJsType()
public void setJsType(java.lang.String jsType)
jsType
- The Javascript type of the variable.public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002–2018. All rights reserved.