public interface PrimitiveValue
Modifier and Type | Method and Description |
---|---|
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.
|
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 setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setByte(byte x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setDouble(double x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setFloat(float x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setInt(int x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setLong(long x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setShort(short x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanvoid setString(String x) throws UnsupportedOperationException
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from boolean