Package com.yahoo.prelude.hitfield
Class XMLString
java.lang.Object
com.yahoo.prelude.hitfield.XMLString
- All Implemented Interfaces:
XmlProducer
A representation of an XML chunk.
- Author:
- Steinar Knutsen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoString()toXML()Convenience method equivalent to: writeXML(new StringBuilder()).toString()writeXML(StringBuilder target) Append the XML representation of this object's data to a StringBuilder.
-
Constructor Details
-
XMLString
-
-
Method Details
-
toString
-
writeXML
Description copied from interface:XmlProducerAppend the XML representation of this object's data to a StringBuilder.- Specified by:
writeXMLin interfaceXmlProducer- Parameters:
target- the StringBuilder to append to.- Returns:
- the target passed in is also returned (to allow chaining).
-
toXML
Description copied from interface:XmlProducerConvenience method equivalent to: writeXML(new StringBuilder()).toString()- Specified by:
toXMLin interfaceXmlProducer- Returns:
- String containing XML representation of this object's data.
-