Class XmlRowWriter.XmlWritingNodeVisitor

java.lang.Object
net.sf.jailer.xml.XmlRowWriter.XmlWritingNodeVisitor
All Implemented Interfaces:
NodeVisitor
Enclosing class:
XmlRowWriter

public abstract class XmlRowWriter.XmlWritingNodeVisitor extends Object implements NodeVisitor
Visits nodes of mapping templates and writes data as XML.
Author:
Ralf Wisser
  • Field Details

  • Constructor Details

  • Method Details

    • toContent

      protected Object toContent(String text, boolean returnNull)
      Gets text to write out. If it starts with "SQL:", write out next column value.
      Parameters:
      text - the text
      returnNull - if true, return null instead of empty string if sql-result is null
      Returns:
      the xml to write out
    • visitComment

      public void visitComment(String comment)
      Description copied from interface: NodeVisitor
      Visits comment.
      Specified by:
      visitComment in interface NodeVisitor
      Parameters:
      comment - the comment
    • visitElementEnd

      public void visitElementEnd(String elementName, boolean isRoot)
      Description copied from interface: NodeVisitor
      Visits end of an element.
      Specified by:
      visitElementEnd in interface NodeVisitor
      Parameters:
      elementName - the element name
      isRoot - true if element is root
    • visitElementStart

      public void visitElementStart(String elementName, boolean isRoot, String[] aNames, String[] aValues)
      Description copied from interface: NodeVisitor
      Visits start of an element.
      Specified by:
      visitElementStart in interface NodeVisitor
      Parameters:
      elementName - the element name
      isRoot - true if element is root
    • visitText

      public void visitText(String text)
      Description copied from interface: NodeVisitor
      Visits text node. Pure whitespace text nodes will not be visited.
      Specified by:
      visitText in interface NodeVisitor
      Parameters:
      text - the text