public class ConfigXmlHandler extends DefaultHandler
gate.xml
files.Constructor and Description |
---|
ConfigXmlHandler(URL configUrl)
Construction
|
Modifier and Type | Method and Description |
---|---|
protected FeatureMap |
attributeListToParameterList()
Utility method to convert the current SAX attribute list to a
FeatureMap
|
void |
characters(char[] text,
int start,
int length)
Called when the SAX parser encounts text (PCDATA) in the XML doc
|
void |
charactersAction(char[] text,
int start,
int length)
This method is called when all characters between specific tags have been read completely
|
void |
endDocument()
Called when the SAX parser encounts the end of the XML document
|
void |
endElement(String uri,
String qName,
String elementName)
Called when the SAX parser encounts the end of an XML element.
|
void |
error(SAXParseException ex)
Called for parse errors.
|
void |
fatalError(SAXParseException ex)
Called for fatal errors.
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Called when the SAX parser encounts white space
|
void |
startDocument()
Called when the SAX parser encounts the beginning of the XML document
|
void |
startElement(String uri,
String qName,
String elementName,
Attributes atts)
Called when the SAX parser encounts the beginning of an XML element
|
void |
warning(SAXParseException ex)
Called for warnings.
|
endPrefixMapping, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl
public ConfigXmlHandler(URL configUrl)
public void startDocument() throws GateSaxException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
GateSaxException
public void endDocument() throws GateSaxException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
GateSaxException
public void startElement(String uri, String qName, String elementName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String qName, String elementName) throws GateSaxException, SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
GateSaxException
SAXException
public void characters(char[] text, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void charactersAction(char[] text, int start, int length) throws SAXException
SAXException
protected FeatureMap attributeListToParameterList()
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class DefaultHandler
SAXException
public void error(SAXParseException ex) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
public void fatalError(SAXParseException ex) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public void warning(SAXParseException ex) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
SAXException
Copyright © 2024 GATE. All rights reserved.