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 Type
    Method
    Description
    default String
    Convenience method equivalent to: writeXML(new StringBuilder()).toString()
    Append the XML representation of this object's data to a StringBuilder.
  • Method Details

    • writeXML

      StringBuilder writeXML(StringBuilder target)
      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

      default String toXML()
      Convenience method equivalent to: writeXML(new StringBuilder()).toString()
      Returns:
      String containing XML representation of this object's data.