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
-
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:XmlProducer
Append the XML representation of this object's data to a StringBuilder.- Specified by:
writeXML
in interfaceXmlProducer
- Parameters:
target
- the StringBuilder to append to.- Returns:
- the target passed in is also returned (to allow chaining).
-
toXML
Description copied from interface:XmlProducer
Convenience method equivalent to: writeXML(new StringBuilder()).toString()- Specified by:
toXML
in interfaceXmlProducer
- Returns:
- String containing XML representation of this object's data.
-