Class ParseHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.camunda.bpm.engine.impl.util.xml.ParseHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class ParseHandler extends DefaultHandler
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected String
defaultNamespace
protected Deque<Element>
elementStack
protected Locator
locator
protected Parse
parse
-
Constructor Summary
Constructors Constructor Description ParseHandler(Parse parse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(String uri, String localName, String qName)
void
error(SAXParseException e)
void
fatalError(SAXParseException e)
void
setDefaultNamespace(String defaultNamespace)
void
setDocumentLocator(Locator locator)
void
startElement(String uri, String localName, String qName, Attributes attributes)
void
warning(SAXParseException e)
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
-
-
-
-
Constructor Detail
-
ParseHandler
public ParseHandler(Parse parse)
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
error
public void error(SAXParseException e)
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
-
fatalError
public void fatalError(SAXParseException e)
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
-
warning
public void warning(SAXParseException e)
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classDefaultHandler
-
setDefaultNamespace
public void setDefaultNamespace(String defaultNamespace)
-
-