edu.ucsb.nceas.morpho.datapackage.wizard
Class PackageWizardParser

edu.ucsb.nceas.morpho.datapackage.wizard.PackageWizardParser

public class PackageWizardParser

A Class implementing callback bethods for the SAX parser to call when processing the XML messages from the Package Wizard


Constructor Summary
PackageWizardParser(java.io.Reader xml)
           
 
Method Summary
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
           
 XMLElement getDoc()
          Returns the document as an XMLElement object.
 java.lang.String getDoctype()
          Returns the public identifier of the doctype that this config file represents
 java.lang.String getDtd()
          Returns the path to the dtd that this config file represents
 java.lang.String getRoot()
          Returns the public identifier of the doctype that this config file represents
static void main(java.lang.String[] args)
           
 void printDoc(XMLElement e)
          prints a string representation of the doc object
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
          This method is called whenever a new start tag is encountered.
 

Constructor Detail

PackageWizardParser

public PackageWizardParser(java.io.Reader xml)
Parameters:
xml - a FileReader object that reprents a stream of XML processing
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
This method is called whenever a new start tag is encountered. It sorts the elements and puts them into their structured XMLElement object.

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException

getDoc

public XMLElement getDoc()
Returns the document as an XMLElement object.

getDtd

public java.lang.String getDtd()
Returns the path to the dtd that this config file represents

getDoctype

public java.lang.String getDoctype()
Returns the public identifier of the doctype that this config file represents

getRoot

public java.lang.String getRoot()
Returns the public identifier of the doctype that this config file represents

printDoc

public void printDoc(XMLElement e)
prints a string representation of the doc object

main

public static void main(java.lang.String[] args)


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.