|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.ibm.ccd.ui.portlets.search.core.SearchResultParser
public class SearchResultParser
A helper class for search result xml parsing using the SAX Parser
Constructor Summary | |
---|---|
SearchResultParser()
|
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
This method processes the event based on conditions. |
java.lang.String |
getData()
This method returns the data string which forms the table values. |
java.lang.String |
getEventName()
Returns the event name |
java.lang.String |
getMetaData()
This method returns the meta data string which forms the table headings. |
java.lang.StringBuffer |
getTotalResultSize()
|
void |
parse(java.lang.String xmlString)
This method parses the XML |
void |
setEventName(java.lang.String string)
Set the event name |
void |
setTotalResultSize(java.lang.StringBuffer data)
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
Receives the startElement event |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endElement, 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 |
Constructor Detail |
---|
public SearchResultParser()
Method Detail |
---|
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- stringlocalName
- stringqName
- stringatts
- Attributes object
org.xml.sax.SAXException
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
ch
- character arraystart
- starting index of the char[]length
- lengthof the char[]
org.xml.sax.SAXException
public void parse(java.lang.String xmlString) throws UIException
xmlString
- string
UIException
public java.lang.String getMetaData()
public java.lang.String getData()
public java.lang.String getEventName()
public void setEventName(java.lang.String string)
string
- public java.lang.StringBuffer getTotalResultSize()
public void setTotalResultSize(java.lang.StringBuffer data)
data
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |