Class ForwardingXMLDefaultHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.eclipse.emf.compare.ide.internal.utils.ForwardingXMLDefaultHandler
-
- All Implemented Interfaces:
XMLDefaultHandler
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
,LexicalHandler
public class ForwardingXMLDefaultHandler extends DefaultHandler implements XMLDefaultHandler
This implementation of anXMLDefaultHandler
will forward all calls to its delegate.
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLDefaultHandler
delegate
The delegate to which we'll forward all calls.
-
Constructor Summary
Constructors Constructor Description ForwardingXMLDefaultHandler(XMLDefaultHandler delegate)
Creates our forwarding handler given its delegate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] arg0, int arg1, int arg2)
void
comment(char[] arg0, int arg1, int arg2)
protected XMLDefaultHandler
delegate()
Returns the delegate instance that methods are forwarded to.void
endCDATA()
void
endDocument()
void
endDTD()
void
endElement(String arg0, String arg1, String arg2)
void
endEntity(String arg0)
void
endPrefixMapping(String arg0)
boolean
equals(Object arg0)
void
error(SAXParseException arg0)
void
fatalError(SAXParseException arg0)
int
hashCode()
void
ignorableWhitespace(char[] arg0, int arg1, int arg2)
void
notationDecl(String arg0, String arg1, String arg2)
void
prepare(XMLResource resource, XMLHelper helper, Map<?,?> options)
void
processingInstruction(String arg0, String arg1)
void
reset()
InputSource
resolveEntity(String arg0, String arg1)
void
setDocumentLocator(Locator arg0)
void
skippedEntity(String arg0)
void
startCDATA()
void
startDocument()
void
startDTD(String arg0, String arg1, String arg2)
void
startElement(String arg0, String arg1, String arg2, Attributes arg3)
void
startEntity(String arg0)
void
startPrefixMapping(String arg0, String arg1)
String
toString()
void
unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)
void
warning(SAXParseException arg0)
-
-
-
Field Detail
-
delegate
protected final XMLDefaultHandler delegate
The delegate to which we'll forward all calls.
-
-
Constructor Detail
-
ForwardingXMLDefaultHandler
public ForwardingXMLDefaultHandler(XMLDefaultHandler delegate)
Creates our forwarding handler given its delegate.- Parameters:
delegate
- The delegate instance to forward method calls to.
-
-
Method Detail
-
delegate
protected XMLDefaultHandler delegate()
Returns the delegate instance that methods are forwarded to.- Returns:
- The delegate instance that methods are forwarded to.
-
characters
public void characters(char[] arg0, int arg1, int arg2) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String arg0, String arg1, String arg2) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String arg0) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
error
public void error(SAXParseException arg0) throws SAXException
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException arg0) throws SAXException
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classDefaultHandler
- Throws:
SAXException
-
notationDecl
public void notationDecl(String arg0, String arg1, String arg2) throws SAXException
- Specified by:
notationDecl
in interfaceDTDHandler
- Overrides:
notationDecl
in classDefaultHandler
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String arg0, String arg1) throws SAXException
- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classDefaultHandler
- Throws:
SAXException
-
resolveEntity
public InputSource resolveEntity(String arg0, String arg1) throws IOException, SAXException
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classDefaultHandler
- Throws:
IOException
SAXException
-
setDocumentLocator
public void setDocumentLocator(Locator arg0)
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classDefaultHandler
-
skippedEntity
public void skippedEntity(String arg0) throws SAXException
- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classDefaultHandler
- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
- Throws:
SAXException
-
startElement
public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String arg0, String arg1) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException
- Specified by:
unparsedEntityDecl
in interfaceDTDHandler
- Overrides:
unparsedEntityDecl
in classDefaultHandler
- Throws:
SAXException
-
warning
public void warning(SAXParseException arg0) throws SAXException
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- Throws:
SAXException
-
comment
public void comment(char[] arg0, int arg1, int arg2) throws SAXException
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
public void endEntity(String arg0) throws SAXException
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
public void startDTD(String arg0, String arg1, String arg2) throws SAXException
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
public void startEntity(String arg0) throws SAXException
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
reset
public void reset()
- Specified by:
reset
in interfaceXMLDefaultHandler
-
prepare
public void prepare(XMLResource resource, XMLHelper helper, Map<?,?> options)
- Specified by:
prepare
in interfaceXMLDefaultHandler
-
-