|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler cas.protocol.JCasResponseHandler
Handles the SAX events when parsing the configuration file and creates the configuration.
Field Summary | |
protected CasSaxTagHandler |
handler
The main tag handler |
Constructor Summary | |
JCasResponseHandler()
Creates a new instance of JCasSaxHandler |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Receive notification of character data inside an element. |
void |
endDocument()
Calls CasSaxTagHandler.tagCompleted() of the topmost handler for validation. |
void |
endElement(String uri,
String localName,
String qName)
Receive notification of the end of an element. |
JCasResponseTag |
getResponse()
Returns the configuration. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Receive notification of the start of an element. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected CasSaxTagHandler handler
Constructor Detail |
public JCasResponseHandler()
Method Detail |
public JCasResponseTag getResponse()
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 endDocument() throws SAXException
CasSaxTagHandler.tagCompleted()
of the topmost handler for validation.
SAXException
|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |