Class XMLTemplate

java.lang.Object
net.sf.basedb.clients.web.plugins.XMLTemplate
All Implemented Interfaces:
Closeable, AutoCloseable, ExportTemplate

public class XMLTemplate extends Object implements ExportTemplate
A XML template that exports data in a simple one-level XML format.
Version:
2.2
Author:
nicklas
Last modified
$Date: 2019-03-12 10:56:19 +0100 (tis, 12 mars 2019) $
  • Field Details

    • xmlOut

      private final org.jdom2.output.XMLOutputter xmlOut
    • exportStream

      private final Writer exportStream
    • properties

      private final List<ExportedProperty> properties
    • itemType

      private final Item itemType
    • itemIdPrefix

      private final String itemIdPrefix
    • itemElement

      private org.jdom2.Element itemElement
    • NEWLINE

      private static final Pattern NEWLINE
  • Constructor Details

    • XMLTemplate

      public XMLTemplate(Writer exportStream, List<ExportedProperty> properties, Item itemType)
      Create a new template.
      Parameters:
      exportStream - The stream to write to
      properties - All exported properties
      itemType - The type of items we are exporting
  • Method Details