|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
no.ubicollab.osgi.ClientRequestParser
public class ClientRequestParser
The Class ClientRequestParser implements a SAX DefaultHandler
which is costomized to parse a xml-document with client requests.
Constructor Summary | |
---|---|
ClientRequestParser()
This Constructor creates a new ClientRequestParser with
a stack and an empty client request list. |
Method Summary | |
---|---|
void |
characters(char[] data,
int start,
int length)
Inherited, but not needed since the ClientRequestList xml structure stores data purely in attributes. |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Called by the sax-documentreader when a endElement event
occurs. |
java.util.ArrayList<ClientRequest> |
getClientRequestList()
Gets the parsed client request list. |
void |
setDocumentLocator(org.xml.sax.Locator rhs)
Inherited, but not used in this implementation. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attribs)
Invoked by the sax-documentreader when a startElement event
occurs. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientRequestParser()
ClientRequestParser
with
a stack and an empty client request list. The parser is immediately
ready to handle parse events.
Method Detail |
---|
public java.util.ArrayList<ClientRequest> getClientRequestList()
ArrayList
containing ClientRequest
objects, or a empty list if none found.public void setDocumentLocator(org.xml.sax.Locator rhs)
Locator
object to obtain the location of any other
SAX event in the XML source document.
See DefaultHandler#setDocumentLocator
for details.
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.setDocumentLocator(org.xml.sax.Locator)
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attribs)
startElement
event
occurs.
Parameters are described in DefaultHandler#startElement
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
endElement
event
occurs.
Parameters are described in DefaultHandler#endElement
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
public void characters(char[] data, int start, int length)
See DefaultHandler#characters
for more details.
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
DefaultHandler.characters(char[], int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |