public final class StringValue extends PrimitiveValueBase
Constructor and Description |
---|
StringValue()
Constructor.
|
StringValue(String stringValue)
Constructor.
|
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.
|
static String |
parseString(String value)
Parse the string literal consisting of text between double-quotes or single-quotes.
|
static String[] |
parseString(String[] values)
Parse the string array returning a string array.
|
void |
setString(String x)
Set a string value.
|
String |
toString() |
parse, setBoolean, setByte, setDouble, setFloat, setInt, setLong, setShort
public StringValue(String stringValue)
stringValue
- sets initial valuepublic StringValue()
public PrimitiveValueType getType()
PrimitiveValue
public static String[] parseString(String[] values)
values
- - string arraypublic final void parse(String value)
PrimitiveValue
value
- is the textual value to parsepublic final Object getValueObject()
PrimitiveValue
public final void setString(String x)
PrimitiveValue
setString
in interface PrimitiveValue
setString
in class PrimitiveValueBase
x
- is the value to set