com.metamatrix.jdbc.api
Class XMLOutputVisitor
java.lang.Object
com.metamatrix.jdbc.api.XMLOutputVisitor
public class XMLOutputVisitor
- extends java.lang.Object
This visitor class can be used to output an XML representation of the plan.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLOutputVisitor
public XMLOutputVisitor(DisplayHelper displayHelper)
XMLOutputVisitor
public XMLOutputVisitor(DisplayHelper displayHelper,
int initialTabs,
boolean printXMLHeader)
getText
public java.lang.String getText()
- Return string representation of the plan
- Returns:
- String representation of the plan
visit
public void visit(PlanNode node)
convertToXML
public static java.lang.String convertToXML(PlanNode node)
- Helper method to perform a conversion using the
DefaultDisplayHelper
.
- Parameters:
node
- The root of the plan tree to convert
- Returns:
- The plan tree converted to XML
Copyright © 2009. All Rights Reserved.