|
||||||||||
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. |
java.lang.Object |
getValueObject()
Returns a value object. |
void |
parse(java.lang.String value)
Parse the string literal value into the specific data type. |
void |
parse(java.lang.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(java.lang.String x)
Set a string value. |
Method Detail |
---|
java.lang.Object getValueObject()
void parse(java.lang.String value)
value
- is the textual value to parsevoid parse(java.lang.String[] values)
values
- are the textual values to parsePrimitiveValueType getType()
void setBoolean(boolean x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setByte(byte x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setDouble(double x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setFloat(float x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setInt(int x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setLong(long x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setShort(short x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
void setString(java.lang.String x) throws java.lang.UnsupportedOperationException
x
- is the value to set
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |