public class StringValue extends JsonValue
| Constructor and Description |
|---|
StringValue(String value)
Constructs new StringValue.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue() |
byte |
getByteValue() |
double |
getDoubleValue() |
float |
getFloatValue() |
int |
getIntValue() |
long |
getLongValue() |
Number |
getNumberValue() |
short |
getShortValue() |
String |
getStringValue() |
boolean |
isString() |
String |
toString() |
void |
writeTo(JsonWriter writer)
Write value in given writer.
|
addElement, addElement, getElement, getElements, getKeys, isArray, isBoolean, isDouble, isLong, isNull, isNumeric, isObject, sizepublic StringValue(String value)
value - the value.public boolean isString()
public String getStringValue()
getStringValue in class JsonValuepublic boolean getBooleanValue()
getBooleanValue in class JsonValuepublic Number getNumberValue()
getNumberValue in class JsonValuepublic byte getByteValue()
getByteValue in class JsonValuepublic short getShortValue()
getShortValue in class JsonValuepublic int getIntValue()
getIntValue in class JsonValuepublic long getLongValue()
getLongValue in class JsonValuepublic float getFloatValue()
getFloatValue in class JsonValuepublic double getDoubleValue()
getDoubleValue in class JsonValuepublic void writeTo(JsonWriter writer) throws JsonException
writeTo in class JsonValuewriter - Writer.JsonException - if any errors occurs.Copyright © 2019 eXo Platform SAS. All Rights Reserved.