|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrimitiveValue
Classes implementing this interface are responsible for parsing, setting and getting the value of the different basic Java data types that occur in an event expression. Placeholders represent all literal values in event expressions and set values in prepared event expressions.
Method Summary | |
---|---|
PrimitiveValueType |
getType()
Returns the type of primitive value this instance represents. |
Object |
getValueObject()
Returns a value object. |
void |
parse(String value)
Parse the string literal value into the specific data type. |
void |
parse(String[] values)
Parse the string literal values supplied in the array into the specific data type. |
void |
setBoolean(boolean x)
Set a boolean value. |
void |
setByte(byte x)
Set a byte value. |
void |
setDouble(double x)
Set a double value. |
void |
setFloat(float x)
Set a float value. |
void |
setInt(int x)
Set an int value. |
void |
setLong(long x)
Set a long value. |
void |
setShort(short x)
Set a short value. |
void |
setString(String x)
Set a string value. |
Method Detail |
---|
Object getValueObject()
void parse(String value)
value
- is the textual value to parsevoid parse(String[] values)
values
- are the textual values to parsePrimitiveValueType getType()
void setBoolean(boolean x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setByte(byte x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setDouble(double x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setFloat(float x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setInt(int x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setLong(long x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setShort(short x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
void setString(String x) throws UnsupportedOperationException
x
- is the value to set
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |