|
JCas v0.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines the methods for tag handlers of the configuration.
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data inside an element. |
void |
endElement(String uri,
String localName,
String qName)
Receive notification of the end of an element. |
CasSaxTagHandler |
getHandler(String tagName,
Attributes attributes)
Returns the handler responsible for the sub tag. |
String |
getTagName()
Returns the tag name this handler will take care of. |
void |
setAttributes(Attributes attr)
Sets the attributes of the tag. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receive notification of the start of an element. |
void |
tagCompleted()
Validates the parsed configuration and throws an exception if there was a problem. |
| Method Detail |
public String getTagName()
public CasSaxTagHandler getHandler(String tagName,
Attributes attributes)
tagName - - the parent of the handler
public void setAttributes(Attributes attr)
attr - - attributes of tag
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
attributes - - The specified or defaulted attributes.localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.qName - - The qualified name (with prefix), or the empty string if qualified names are not available.
SAXException - - Any SAX exception, possibly wrapping another exception.ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(String uri,
String localName,
String qName)
throws SAXException
localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.qName - - The qualified name (with prefix), or the empty string if qualified names are not available.
SAXException - - Any SAX exception, possibly wrapping another exception.ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void characters(char[] ch,
int start,
int length)
throws SAXException
ch - - The characters.start - - The start position in the character array.length - - The number of characters to use from the character array.
SAXException - - Any SAX exception, possibly wrapping another exception.ContentHandler.characters(char[], int, int)
public void tagCompleted()
throws SAXException
Please note that there is a gap when the documents ends because nobody calls the method of the topmost handler. Application programmers must do this manually.
SAXException - if a configuration error occured.
|
JCas v0.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||