public class CreoleXmlHandler extends DefaultHandler
creole.xml files.
It would have been better to write it using DOM or JDOM but....
Resource data objects are created and added to the CREOLE register.
URLs for resource JAR files are added to the GATE class loader.| Constructor and Description |
|---|
CreoleXmlHandler(CreoleRegister register,
Plugin plugin)
Construction
|
| Modifier and Type | Method and Description |
|---|---|
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
|
protected List<Parameter> |
currentFlattenedDisjunction()
Flatten the currentParamDisjunction map into a single list
ordered by priority.
|
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, unparsedEntityDeclpublic CreoleXmlHandler(CreoleRegister register, Plugin plugin)
public void startDocument()
throws GateSaxException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerGateSaxExceptionpublic void endDocument()
throws GateSaxException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerGateSaxExceptionpublic void startElement(String uri, String qName, String elementName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String qName, String elementName) throws GateSaxException, SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerGateSaxExceptionSAXExceptionpublic void characters(char[] text,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void charactersAction(char[] text,
int start,
int length)
throws SAXException
SAXExceptionprotected List<Parameter> currentFlattenedDisjunction()
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXExceptionpublic void error(SAXParseException ex) throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXExceptionpublic void fatalError(SAXParseException ex) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionpublic void warning(SAXParseException ex) throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXExceptionCopyright © 2024 GATE. All rights reserved.