public final class UserVariable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BOOLEAN
The boolean value type.
|
static int |
DOUBLE
The double value type.
|
static int |
INTEGER
The integer value type.
|
static int |
NONE
No value type.
|
static int |
STRING
The string value type.
|
Constructor and Description |
---|
UserVariable()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean()
Gets a boolean value.
|
double |
getDouble()
Gets a double value.
|
int |
getInteger()
Gets an integer value.
|
java.lang.String |
getString()
Gets a string value.
|
int |
getType()
Gets the type of this user variable.
|
java.lang.Object |
getValue()
Gets the value as an object.
|
boolean |
isValid()
Indicates if the user variable is valid or not.
|
void |
setBoolean(boolean val)
Sets a boolean value.
|
void |
setDouble(double val)
Sets a double value.
|
void |
setInteger(int val)
Sets an integer value.
|
void |
setString(java.lang.String val)
Sets a string value.
|
java.lang.String |
toString()
Returns a string representation of the user variable.
|
public static final int NONE
public static final int STRING
public static final int BOOLEAN
public static final int INTEGER
public static final int DOUBLE
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isValid()
true
if valid, otherwise false
.public int getType()
public java.lang.Object getValue()
null
if none.public void setString(java.lang.String val)
val
- The string value.public java.lang.String getString()
public void setBoolean(boolean val)
val
- The boolean value.public boolean getBoolean()
public void setInteger(int val)
val
- The integer value.public int getInteger()
public void setDouble(double val)
val
- The double value.public double getDouble()