Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class JsonString

extends Object
implements JsonValue
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.JsonValue
Imports
java.util.HashMap, com.mysql.cj.xdevapi.JsonParser.EscapeChar

Represents a JSON string.

Field Summary

Modifier and TypeField and Description
pack-priv static HashMap<Character, String>
private String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

internal string value
getString
()

Get internal unescaped JsonString value.

public JsonString

Returns:

this JsonString
setValue
(String
string value
value
)

Set JsonString value.

public String

Returns:

string value
toString
()

Overrides java.lang.Object.toString.

Get escaped JsonString value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

escapeCharsback to summary
pack-priv static HashMap<Character, String> escapeChars
valback to summary
private String val

Constructor Detail

JsonStringback to summary
public JsonString()

Method Detail

getStringback to summary
public String getString()

Get internal unescaped JsonString value.

Returns:String

internal string value

setValueback to summary
public JsonString setValue(String value)

Set JsonString value.

Parameters
value:String

string value

Returns:JsonString

this JsonString

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Get escaped JsonString value.

Returns:String

string value

Annotations
@Override