public abstract class XmlRowWriter.XmlWritingNodeVisitor extends java.lang.Object implements NodeVisitor
Modifier and Type | Field and Description |
---|---|
protected CellContentConverter |
cellContentConverter
|
Constructor and Description |
---|
XmlWritingNodeVisitor(java.sql.ResultSet resultSet,
java.sql.ResultSetMetaData resultSetMetaData,
Table table,
Association association,
Session session)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
toContent(java.lang.String text,
boolean returnNull)
Gets text to write out.
|
void |
visitComment(java.lang.String comment)
Visits comment.
|
void |
visitElementEnd(java.lang.String elementName,
boolean isRoot)
Visits end of an element.
|
void |
visitElementStart(java.lang.String elementName,
boolean isRoot,
java.lang.String[] aNames,
java.lang.String[] aValues)
Visits start of an element.
|
void |
visitText(java.lang.String text)
Visits text node.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAssociationElement
protected final CellContentConverter cellContentConverter
public XmlWritingNodeVisitor(java.sql.ResultSet resultSet, java.sql.ResultSetMetaData resultSetMetaData, Table table, Association association, Session session)
resultSet
- to read rows fromprotected java.lang.Object toContent(java.lang.String text, boolean returnNull)
text
- the textreturnNull
- if true
, return null instead of empty string if sql-result is nullpublic void visitComment(java.lang.String comment)
NodeVisitor
visitComment
in interface NodeVisitor
comment
- the commentpublic void visitElementEnd(java.lang.String elementName, boolean isRoot)
NodeVisitor
visitElementEnd
in interface NodeVisitor
elementName
- the element nameisRoot
- true if element is rootpublic void visitElementStart(java.lang.String elementName, boolean isRoot, java.lang.String[] aNames, java.lang.String[] aValues)
NodeVisitor
visitElementStart
in interface NodeVisitor
elementName
- the element nameisRoot
- true if element is rootpublic void visitText(java.lang.String text)
NodeVisitor
visitText
in interface NodeVisitor
text
- the text