Package org.pentaho.di.repository
Class RepositoryExportSaxParser
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.xml.sax.ext.DefaultHandler2
-
- org.pentaho.di.repository.RepositoryExportSaxParser
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,DeclHandler
,EntityResolver2
,LexicalHandler
public class RepositoryExportSaxParser extends DefaultHandler2
-
-
Field Summary
Fields Modifier and Type Field Description static String
STRING_JOB
static String
STRING_JOBS
static String
STRING_REPOSITORY
static String
STRING_TRANSFORMATION
static String
STRING_TRANSFORMATIONS
-
Constructor Summary
Constructors Constructor Description RepositoryExportSaxParser(String filename, RepositoryImportFeedbackInterface feedback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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)
-
-
Method Detail
-
parse
public void parse(RepositoryElementReadListener repositoryElementReadListener) throws SAXException, ParserConfigurationException, IOException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes)
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
public void endElement(String uri, String localName, String qName)
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
startCDATA
public void startCDATA()
- Specified by:
startCDATA
in interfaceLexicalHandler
- Overrides:
startCDATA
in classDefaultHandler2
-
endCDATA
public void endCDATA()
- Specified by:
endCDATA
in interfaceLexicalHandler
- Overrides:
endCDATA
in classDefaultHandler2
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
fatalError
public void fatalError(SAXParseException e)
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
-
-