public abstract class SAXContextBasedHandler extends DefaultHandler
DefaultHandler for a SAX parsing framework.
SAXContextBasedHandler acts as an facade to context specific
ISAXElementHandler instances. These ISAXElementHandler
instances are built up in a stack like manner with each
startElement/EndElement event.| Constructor and Description |
|---|
SAXContextBasedHandler() |
endPrefixMapping, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDeclpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String local, String name) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionpublic void fail()
public void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionpublic ClassLoader getClassLoader()
public ISAXElementHandler getCurrent()
public abstract ISAXElementHandler getDefaultDocumentElement()
public ISAXElementHandler getDocumentElement()
public String getErrorString(SAXParseException e)
public IStringEvaluator getTemplateEvaluator()
public Exception getException()
public String getLocationString(SAXParseException e)
public Locator getLocator()
public int getNesting()
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXExceptionpublic boolean isDocumentElementLevel()
public boolean isEmpty()
public boolean isError()
public boolean isStarted()
public void reset()
public void setClassLoader(ClassLoader classLoader)
public void setDocumentElement(ISAXElementHandler e)
public void setDocumentLocator(Locator newlocator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerpublic void setTemplateEvaluator(IStringEvaluator evaluator)
public void setException(Exception newException)
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void startElement(String uri, String local, String name, Attributes attrs) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic Attributes substitute(Attributes attributes)
public void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXExceptionCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.