SMILA (incubation) API documentation

org.eclipse.smila.search.api.internal
Class ResultDocumentBuilder

java.lang.Object
  extended by org.eclipse.smila.search.api.internal.ResultDocumentBuilder

public class ResultDocumentBuilder
extends java.lang.Object

create an XML document from a search result.

Author:
jschumacher

Constructor Summary
ResultDocumentBuilder()
          create instance.
 
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
 

Constructor Detail

ResultDocumentBuilder

public ResultDocumentBuilder()
create instance.

Method Detail

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 name
result - 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.

SMILA (incubation) API documentation