|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.UserVariable
This class represents a user variable. Several value types are supported.
Swath.getUserVariable(java.lang.String, boolean),
Swath.setUserVariable(java.lang.String, com.swath.UserVariable, boolean),
Swath.delUserVariable(java.lang.String, boolean)| Field Summary | |
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 Summary | |
UserVariable()
Constructor. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
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
| Constructor Detail |
public UserVariable()
| Method Detail |
public java.lang.String toString()
public boolean isValid()
true if valid, otherwise false.public int getType()
STRING,
BOOLEAN,
INTEGER,
DOUBLEpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||