com.metamatrix.jdbc.api
Class XMLOutputVisitor

java.lang.Object
  extended by 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.


Constructor Summary
XMLOutputVisitor(DisplayHelper displayHelper)
           
XMLOutputVisitor(DisplayHelper displayHelper, int initialTabs, boolean printXMLHeader)
           
 
Method Summary
static java.lang.String convertToXML(PlanNode node)
          Helper method to perform a conversion using the DefaultDisplayHelper.
 java.lang.String getText()
          Return string representation of the plan
 void visit(PlanNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLOutputVisitor

public XMLOutputVisitor(DisplayHelper displayHelper)

XMLOutputVisitor

public XMLOutputVisitor(DisplayHelper displayHelper,
                        int initialTabs,
                        boolean printXMLHeader)
Method Detail

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.