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
This implementation of an
XMLDefaultHandler
will forward all calls to its delegate.-
Field Summary
Modifier and TypeFieldDescriptionprotected final XMLDefaultHandler
The delegate to which we'll forward all calls. -
Constructor Summary
ConstructorDescriptionForwardingXMLDefaultHandler
(XMLDefaultHandler delegate) Creates our forwarding handler given its delegate. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
endDTD()
void
endElement
(String arg0, String arg1, String arg2) void
void
endPrefixMapping
(String arg0) boolean
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()
resolveEntity
(String arg0, String arg1) void
setDocumentLocator
(Locator arg0) void
skippedEntity
(String arg0) void
void
void
void
startElement
(String arg0, String arg1, String arg2, Attributes arg3) void
startEntity
(String arg0) void
startPrefixMapping
(String arg0, String arg1) toString()
void
unparsedEntityDecl
(String arg0, String arg1, String arg2, String arg3) void
warning
(SAXParseException arg0) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
delegate
The delegate to which we'll forward all calls.
-
-
Constructor Details
-
ForwardingXMLDefaultHandler
Creates our forwarding handler given its delegate.- Parameters:
delegate
- The delegate instance to forward method calls to.
-
-
Method Details
-
delegate
Returns the delegate instance that methods are forwarded to.- Returns:
- The delegate instance that methods are forwarded to.
-
characters
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
- Throws:
SAXException
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
- Throws:
SAXException
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
equals
-
error
- Specified by:
error
in interfaceErrorHandler
- Overrides:
error
in classDefaultHandler
- Throws:
SAXException
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Overrides:
fatalError
in classDefaultHandler
- Throws:
SAXException
-
hashCode
public int hashCode() -
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Overrides:
ignorableWhitespace
in classDefaultHandler
- Throws:
SAXException
-
notationDecl
- Specified by:
notationDecl
in interfaceDTDHandler
- Overrides:
notationDecl
in classDefaultHandler
- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Overrides:
processingInstruction
in classDefaultHandler
- Throws:
SAXException
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classDefaultHandler
- Throws:
IOException
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classDefaultHandler
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Overrides:
skippedEntity
in classDefaultHandler
- Throws:
SAXException
-
startDocument
- 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
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classDefaultHandler
- Throws:
SAXException
-
toString
-
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
- Specified by:
warning
in interfaceErrorHandler
- Overrides:
warning
in classDefaultHandler
- Throws:
SAXException
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
-
reset
public void reset()- Specified by:
reset
in interfaceXMLDefaultHandler
-
prepare
- Specified by:
prepare
in interfaceXMLDefaultHandler
-