|
JCas v0.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
cas.protocol.JCasRequestHandler
Handles the SAX events when parsing the configuration file and creates the configuration.
| Field Summary | |
protected CasSaxTagHandler |
handler
The main tag handler |
protected PropertyChangeListener |
listener
The property listener. |
protected boolean |
listenerInformed
if listener was informed about start |
static String |
XML_PARSING_FINISHED
Parsing stopped property |
static String |
XML_PARSING_STARTED
Parsing started property |
| Constructor Summary | |
JCasRequestHandler(PropertyChangeListener listener)
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. |
CasSaxTagHandler |
getRequest()
Returns the configuration. |
boolean |
isAdminRequest()
Returns if the request was an admin or authorization request. |
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 |
public static final String XML_PARSING_STARTED
public static final String XML_PARSING_FINISHED
protected CasSaxTagHandler handler
protected PropertyChangeListener listener
protected boolean listenerInformed
| Constructor Detail |
public JCasRequestHandler(PropertyChangeListener listener)
| Method Detail |
public CasSaxTagHandler getRequest()
public boolean isAdminRequest()
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 | |||||||||