org.pentaho.di.repository
Class RepositoryExportSaxParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.xml.sax.ext.DefaultHandler2
          extended by org.pentaho.di.repository.RepositoryExportSaxParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, EntityResolver2, LexicalHandler

public class RepositoryExportSaxParser
extends DefaultHandler2


Field Summary
static String STRING_JOB
           
static String STRING_JOBS
           
static String STRING_REPOSITORY
           
static String STRING_TRANSFORMATION
           
static String STRING_TRANSFORMATIONS
           
 
Constructor Summary
RepositoryExportSaxParser(String filename, RepositoryImportFeedbackInterface feedback)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endCDATA()
           
 void endElement(String uri, String localName, String qName)
           
 void fatalError(SAXParseException e)
           
 void parse(RepositoryElementReadListener repositoryElementReadListener)
           
 void startCDATA()
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startDTD, startEntity
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_REPOSITORY

public static final String STRING_REPOSITORY
See Also:
Constant Field Values

STRING_TRANSFORMATIONS

public static final String STRING_TRANSFORMATIONS
See Also:
Constant Field Values

STRING_TRANSFORMATION

public static final String STRING_TRANSFORMATION
See Also:
Constant Field Values

STRING_JOBS

public static final String STRING_JOBS
See Also:
Constant Field Values

STRING_JOB

public static final String STRING_JOB
See Also:
Constant Field Values
Constructor Detail

RepositoryExportSaxParser

public RepositoryExportSaxParser(String filename,
                                 RepositoryImportFeedbackInterface feedback)
                          throws Exception
Throws:
Exception
Method Detail

parse

public void parse(RepositoryElementReadListener repositoryElementReadListener)
           throws Exception
Throws:
Exception

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class DefaultHandler
Throws:
SAXException

startCDATA

public void startCDATA()
                throws SAXException
Specified by:
startCDATA in interface LexicalHandler
Overrides:
startCDATA in class DefaultHandler2
Throws:
SAXException

endCDATA

public void endCDATA()
              throws SAXException
Specified by:
endCDATA in interface LexicalHandler
Overrides:
endCDATA in class DefaultHandler2
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class DefaultHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException e)
                throws SAXException
Specified by:
fatalError in interface ErrorHandler
Overrides:
fatalError in class DefaultHandler
Throws:
SAXException