org.eclipse.smila.search.api.internal
Class ResultDocumentBuilder
java.lang.Object
org.eclipse.smila.search.api.internal.ResultDocumentBuilder
public class ResultDocumentBuilder
- extends java.lang.Object
create an XML document from a search result.
- Author:
- jschumacher
|
Method Summary |
org.w3c.dom.Document |
buildError(java.lang.Exception ex)
|
org.w3c.dom.Document |
buildResult(java.lang.String workflow,
Record result)
build <proc:SearchResult> DOM document from search result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultDocumentBuilder
public ResultDocumentBuilder()
- create instance.
buildResult
public org.w3c.dom.Document buildResult(java.lang.String workflow,
Record result)
throws javax.xml.parsers.ParserConfigurationException
- build <proc:SearchResult> DOM document from search result.
- Parameters:
workflow - workflow nameresult - search result
- Returns:
- DOM docoument
- Throws:
javax.xml.parsers.ParserConfigurationException - error creating document.
buildError
public org.w3c.dom.Document buildError(java.lang.Exception ex)
throws javax.xml.parsers.ParserConfigurationException
- Parameters:
ex - exception
- Returns:
- DOM document containing message and stack trace of the exception.
- Throws:
javax.xml.parsers.ParserConfigurationException - error creating document.