|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
gate.config.ConfigXmlHandler
public class ConfigXmlHandler
This is a SAX handler for processing gate.xml files.
| Constructor Summary | |
|---|---|
ConfigXmlHandler(URL configUrl)
Construction |
|
| Method Summary | |
|---|---|
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 |
protected void |
createResource(String resourceTypeName,
List resourceList)
Utility method to create a resource and add to appropriate list. |
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. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigXmlHandler(URL configUrl)
| Method Detail |
|---|
public void startDocument()
throws GateSaxException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerGateSaxException
public void endDocument()
throws GateSaxException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerGateSaxException
public void startElement(String uri,
String qName,
String elementName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXException
public void endElement(String uri,
String qName,
String elementName)
throws GateSaxException,
SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerGateSaxException
SAXException
public void characters(char[] text,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXException
public void charactersAction(char[] text,
int start,
int length)
throws SAXException
SAXException
protected void createResource(String resourceTypeName,
List resourceList)
throws GateSaxException
GateSaxExceptionprotected FeatureMap attributeListToParameterList()
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class DefaultHandlerSAXException
public void error(SAXParseException ex)
throws SAXException
error in interface ErrorHandlererror in class DefaultHandlerSAXException
public void fatalError(SAXParseException ex)
throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXException
public void warning(SAXParseException ex)
throws SAXException
warning in interface ErrorHandlerwarning in class DefaultHandlerSAXException
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||