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 anXMLDefaultHandlerwill forward all calls to its delegate.
-
-
Field Summary
Fields Modifier and Type Field Description protected XMLDefaultHandlerdelegateThe 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 voidcharacters(char[] arg0, int arg1, int arg2)voidcomment(char[] arg0, int arg1, int arg2)protected XMLDefaultHandlerdelegate()Returns the delegate instance that methods are forwarded to.voidendCDATA()voidendDocument()voidendDTD()voidendElement(String arg0, String arg1, String arg2)voidendEntity(String arg0)voidendPrefixMapping(String arg0)booleanequals(Object arg0)voiderror(SAXParseException arg0)voidfatalError(SAXParseException arg0)inthashCode()voidignorableWhitespace(char[] arg0, int arg1, int arg2)voidnotationDecl(String arg0, String arg1, String arg2)voidprepare(XMLResource resource, XMLHelper helper, Map<?,?> options)voidprocessingInstruction(String arg0, String arg1)voidreset()InputSourceresolveEntity(String arg0, String arg1)voidsetDocumentLocator(Locator arg0)voidskippedEntity(String arg0)voidstartCDATA()voidstartDocument()voidstartDTD(String arg0, String arg1, String arg2)voidstartElement(String arg0, String arg1, String arg2, Attributes arg3)voidstartEntity(String arg0)voidstartPrefixMapping(String arg0, String arg1)StringtoString()voidunparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)voidwarning(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:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
endElement
public void endElement(String arg0, String arg1, String arg2) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String arg0) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classDefaultHandler- Throws:
SAXException
-
error
public void error(SAXParseException arg0) throws SAXException
- Specified by:
errorin interfaceErrorHandler- Overrides:
errorin classDefaultHandler- Throws:
SAXException
-
fatalError
public void fatalError(SAXParseException arg0) throws SAXException
- Specified by:
fatalErrorin interfaceErrorHandler- Overrides:
fatalErrorin classDefaultHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] arg0, int arg1, int arg2) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classDefaultHandler- Throws:
SAXException
-
notationDecl
public void notationDecl(String arg0, String arg1, String arg2) throws SAXException
- Specified by:
notationDeclin interfaceDTDHandler- Overrides:
notationDeclin classDefaultHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String arg0, String arg1) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Overrides:
processingInstructionin classDefaultHandler- Throws:
SAXException
-
resolveEntity
public InputSource resolveEntity(String arg0, String arg1) throws IOException, SAXException
- Specified by:
resolveEntityin interfaceEntityResolver- Overrides:
resolveEntityin classDefaultHandler- Throws:
IOExceptionSAXException
-
setDocumentLocator
public void setDocumentLocator(Locator arg0)
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
skippedEntity
public void skippedEntity(String arg0) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Overrides:
skippedEntityin classDefaultHandler- Throws:
SAXException
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler- Throws:
SAXException
-
startElement
public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String arg0, String arg1) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classDefaultHandler- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException
- Specified by:
unparsedEntityDeclin interfaceDTDHandler- Overrides:
unparsedEntityDeclin classDefaultHandler- Throws:
SAXException
-
warning
public void warning(SAXParseException arg0) throws SAXException
- Specified by:
warningin interfaceErrorHandler- Overrides:
warningin classDefaultHandler- Throws:
SAXException
-
comment
public void comment(char[] arg0, int arg1, int arg2) throws SAXException- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
public void endCDATA() throws SAXException- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
public void endDTD() throws SAXException- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
public void endEntity(String arg0) throws SAXException
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
public void startCDATA() throws SAXException- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
startDTD
public void startDTD(String arg0, String arg1, String arg2) throws SAXException
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
public void startEntity(String arg0) throws SAXException
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
reset
public void reset()
- Specified by:
resetin interfaceXMLDefaultHandler
-
prepare
public void prepare(XMLResource resource, XMLHelper helper, Map<?,?> options)
- Specified by:
preparein interfaceXMLDefaultHandler
-
-