public class StructuredData extends Object implements com.yahoo.data.access.Inspectable, JsonProducer, XmlProducer
Modifier and Type | Field and Description |
---|---|
private com.yahoo.data.access.Inspector |
value |
Constructor and Description |
---|
StructuredData(com.yahoo.data.access.Inspector value) |
Modifier and Type | Method and Description |
---|---|
com.yahoo.data.access.Inspector |
inspect() |
String |
toJson()
Convenience method equivalent to:
makeJson(new StringBuilder()).toString()
|
String |
toString() |
String |
toXML()
Convenience method equivalent to:
makeXML(new StringBuilder()).toString()
|
StringBuilder |
writeJson(StringBuilder target)
Append the JSON representation of this object's data to a StringBuilder.
|
StringBuilder |
writeXML(StringBuilder target)
Append the XML representation of this object's data to a StringBuilder.
|
public com.yahoo.data.access.Inspector inspect()
inspect
in interface com.yahoo.data.access.Inspectable
public String toXML()
XmlProducer
toXML
in interface XmlProducer
public StringBuilder writeXML(StringBuilder target)
XmlProducer
writeXML
in interface XmlProducer
target
- the StringBuilder to append to.public String toJson()
JsonProducer
toJson
in interface JsonProducer
public StringBuilder writeJson(StringBuilder target)
JsonProducer
writeJson
in interface JsonProducer
target
- the StringBuilder to append to.Copyright © 2018. All rights reserved.