java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.gjt.sp.jedit.syntax.XModeHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
XML handler for mode definition files.
- Version:
- $Id: XModeHandler.java 25244 2020-04-15 15:14:49Z kpouer $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] c, int off, int len) void
void
endElement
(String uri, String localName, String name) protected abstract void
Reports an error.Returns the TokenMarker.protected abstract TokenMarker
getTokenMarker
(String mode) Returns the token marker for the given mode.resolveEntity
(String publicId, String systemId) void
void
startElement
(String uri, String localName, String qName, Attributes attrs) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XModeHandler
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Overrides:
resolveEntity
in classDefaultHandler
-
characters
public void characters(char[] c, int off, int len) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
startElement
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
startDocument
public void startDocument()- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classDefaultHandler
-
endDocument
public void endDocument()- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classDefaultHandler
-
getTokenMarker
Returns the TokenMarker.- Returns:
- a TokenMarker it cannot be null
-
getModeProperties
-
error
Reports an error. You must override this method so that the mode loader can do error reporting.- Parameters:
msg
- The error typesubst
- AString
or aThrowable
containing specific information- Since:
- jEdit 4.2pre1
-
getTokenMarker
Returns the token marker for the given mode. You must override this method so that the mode loader can resolve delegate targets.- Parameters:
mode
- The mode name- Since:
- jEdit 4.2pre1
-