public class JSONString extends Object implements com.yahoo.data.access.Inspectable
Modifier and Type | Class and Description |
---|---|
private static class |
JSONString.ArrayFieldRenderer |
private static class |
JSONString.FieldRenderer |
private static class |
JSONString.MapFieldRenderer |
private static class |
JSONString.NumberFieldRenderer |
private static class |
JSONString.StringFieldRenderer |
private static class |
JSONString.StructureFieldRenderer |
Modifier and Type | Field and Description |
---|---|
private String |
content |
private boolean |
didInitContent |
private boolean |
didInitJSON |
private Object |
parsedJSON |
private static long |
serialVersionUID |
private com.yahoo.data.access.Inspector |
value |
Constructor and Description |
---|
JSONString(com.yahoo.data.access.Inspector value) |
JSONString(String content) |
Modifier and Type | Method and Description |
---|---|
boolean |
fillWeightedSetItem(WeightedSetItem item) |
String |
getContent() |
Object |
getParsedJSON() |
private void |
initContent() |
private void |
initJSON() |
com.yahoo.data.access.Inspector |
inspect() |
private static String |
render(org.json.JSONArray sequence) |
private static String |
render(org.json.JSONObject structure) |
String |
renderFromInspector() |
void |
setParsedJSON(Object parsedJSON) |
String |
toString() |
private static final long serialVersionUID
private com.yahoo.data.access.Inspector value
private String content
private boolean didInitContent
private Object parsedJSON
private boolean didInitJSON
public JSONString(com.yahoo.data.access.Inspector value)
public JSONString(String content)
IllegalArgumentException
- Does not accept null contentpublic com.yahoo.data.access.Inspector inspect()
inspect
in interface com.yahoo.data.access.Inspectable
private void initContent()
public boolean fillWeightedSetItem(WeightedSetItem item)
private void initJSON()
private static String render(org.json.JSONArray sequence)
private static String render(org.json.JSONObject structure)
public String getContent()
public Object getParsedJSON()
public void setParsedJSON(Object parsedJSON)
public String renderFromInspector()
Copyright © 2018. All rights reserved.