Package com.yahoo.data
Interface XmlProducer
- All Known Implementing Classes:
PositionsData
,StructuredData
,XMLString
public interface XmlProducer
Generic API for classes that contain data representable as XML.
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
toXML()
Convenience method equivalent to: writeXML(new StringBuilder()).toString()writeXML
(StringBuilder target) Append the XML representation of this object's data to a StringBuilder.
-
Method Details
-
writeXML
Append the XML representation of this object's data to a StringBuilder.- Parameters:
target
- the StringBuilder to append to.- Returns:
- the target passed in is also returned (to allow chaining).
-
toXML
Convenience method equivalent to: writeXML(new StringBuilder()).toString()- Returns:
- String containing XML representation of this object's data.
-