public abstract class PrimitiveValueBase extends Object implements PrimitiveValue
Constructor and Description |
---|
PrimitiveValueBase() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType, getValueObject, parse
public void parse(String[] values)
PrimitiveValue
parse
in interface PrimitiveValue
values
- are the textual values to parsepublic void setBoolean(boolean x) throws UnsupportedOperationException
PrimitiveValue
setBoolean
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setByte(byte x) throws UnsupportedOperationException
PrimitiveValue
setByte
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setDouble(double x) throws UnsupportedOperationException
PrimitiveValue
setDouble
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setFloat(float x) throws UnsupportedOperationException
PrimitiveValue
setFloat
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setInt(int x) throws UnsupportedOperationException
PrimitiveValue
setInt
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setLong(long x) throws UnsupportedOperationException
PrimitiveValue
setLong
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setShort(short x) throws UnsupportedOperationException
PrimitiveValue
setShort
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from booleanpublic void setString(String x) throws UnsupportedOperationException
PrimitiveValue
setString
in interface PrimitiveValue
x
- is the value to setUnsupportedOperationException
- to indicate that the value cannot convert from boolean