jpl.pds.parser
Class XMLDom

java.lang.Object
  extended by jpl.pds.parser.XMLDom

public class XMLDom
extends Object

Creates a DOM document from an Antlr AST tree which was created during the parsing of an ODL file.

Author:
J. Crichton

Constructor Summary
XMLDom()
           
 
Method Summary
 Document convert(antlr.collections.AST ast, String[] names, String xsdRootName, RunLog runLog)
          Convert Antlr AST tree to XML DOM document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDom

public XMLDom()
Method Detail

convert

public final Document convert(antlr.collections.AST ast,
                              String[] names,
                              String xsdRootName,
                              RunLog runLog)
Convert Antlr AST tree to XML DOM document.

Parameters:
ast - Antlr ast tree to convert.
names - Token types.
xsdRootName - Root name from Data Set xsd file.
runLog - RunLog object used for writing messages to cmd window and output log.
Returns:
XML DOM document.


Copyright © 2005-2012 Planetary Data System. All Rights Reserved.