Package com.yahoo.prelude.hitfield
Class JSONString
- java.lang.Object
-
- com.yahoo.prelude.hitfield.JSONString
-
- All Implemented Interfaces:
com.yahoo.data.access.Inspectable
public class JSONString extends Object implements com.yahoo.data.access.Inspectable
A JSON wrapper. Contains XML-style rendering of a JSON structure.- Author:
- Steinar Knutsen
-
-
Constructor Summary
Constructors Constructor Description JSONString(com.yahoo.data.access.Inspector value)
JSONString(String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
fillWeightedSetItem(WeightedSetItem item)
String
getContent()
Object
getParsedJSON()
Deprecated, for removal: This API element is subject to removal in a future version.UsegetContent()
instead and parse content yourselfcom.yahoo.data.access.Inspector
inspect()
String
renderFromInspector()
void
setParsedJSON(Object parsedJSON)
Deprecated, for removal: This API element is subject to removal in a future version.String
toString()
-
-
-
Constructor Detail
-
JSONString
public JSONString(com.yahoo.data.access.Inspector value)
-
JSONString
public JSONString(String content)
- Throws:
IllegalArgumentException
- Does not accept null content
-
-
Method Detail
-
inspect
public com.yahoo.data.access.Inspector inspect()
- Specified by:
inspect
in interfacecom.yahoo.data.access.Inspectable
-
fillWeightedSetItem
public boolean fillWeightedSetItem(WeightedSetItem item)
-
getContent
public String getContent()
-
getParsedJSON
@Deprecated(forRemoval=true, since="7") public Object getParsedJSON()
Deprecated, for removal: This API element is subject to removal in a future version.UsegetContent()
instead and parse content yourself
-
setParsedJSON
@Deprecated(forRemoval=true, since="7") public void setParsedJSON(Object parsedJSON)
Deprecated, for removal: This API element is subject to removal in a future version.
-
renderFromInspector
public String renderFromInspector()
-
-