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