Class XmlRowWriter.XmlWritingNodeVisitor
java.lang.Object
net.sf.jailer.xml.XmlRowWriter.XmlWritingNodeVisitor
- All Implemented Interfaces:
NodeVisitor
- Enclosing class:
XmlRowWriter
Visits nodes of mapping templates and writes data as XML.
- Author:
- Ralf Wisser
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXmlWritingNodeVisitor(ResultSet resultSet, ResultSetMetaData resultSetMetaData, Table table, Association association, Session session) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectGets text to write out.voidvisitComment(String comment) Visits comment.voidvisitElementEnd(String elementName, boolean isRoot) Visits end of an element.voidvisitElementStart(String elementName, boolean isRoot, String[] aNames, String[] aValues) Visits start of an element.voidVisits text node.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.jailer.xml.NodeVisitor
visitAssociationElement
-
Field Details
-
cellContentConverter
-
-
Constructor Details
-
XmlWritingNodeVisitor
public XmlWritingNodeVisitor(ResultSet resultSet, ResultSetMetaData resultSetMetaData, Table table, Association association, Session session) Constructor.- Parameters:
resultSet- to read rows from
-
-
Method Details
-
toContent
-
visitComment
Description copied from interface:NodeVisitorVisits comment.- Specified by:
visitCommentin interfaceNodeVisitor- Parameters:
comment- the comment
-
visitElementEnd
Description copied from interface:NodeVisitorVisits end of an element.- Specified by:
visitElementEndin interfaceNodeVisitor- Parameters:
elementName- the element nameisRoot- true if element is root
-
visitElementStart
public void visitElementStart(String elementName, boolean isRoot, String[] aNames, String[] aValues) Description copied from interface:NodeVisitorVisits start of an element.- Specified by:
visitElementStartin interfaceNodeVisitor- Parameters:
elementName- the element nameisRoot- true if element is root
-
visitText
Description copied from interface:NodeVisitorVisits text node. Pure whitespace text nodes will not be visited.- Specified by:
visitTextin interfaceNodeVisitor- Parameters:
text- the text
-