org.apache.oodt.xmlquery
Class QueryResult

java.lang.Object
  extended by org.apache.oodt.xmlquery.QueryResult
All Implemented Interfaces:
Serializable, Cloneable, Documentable

public class QueryResult
extends Object
implements Serializable, Cloneable, Documentable

Results of a query.

Author:
Kelly
See Also:
Serialized Form

Constructor Summary
QueryResult()
          Create empty results.
QueryResult(List list)
          Create results from the given list of results.
QueryResult(Node node)
          Create results from an XML node.
 
Method Summary
 void clear()
          Clear out any results.
 Object clone()
           
 boolean equals(Object obj)
           
 List getList()
          Get the list of results.
 long getSize()
           
 int hashCode()
           
 void setRetriever(Retriever retriever)
           
 String toString()
           
 Node toXML(Document doc)
          Document (aka serialize) this object into an XML DOM node.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryResult

public QueryResult()
Create empty results.


QueryResult

public QueryResult(List list)
Create results from the given list of results.

Parameters:
list - List of Results.

QueryResult

public QueryResult(Node node)
Create results from an XML node.

Parameters:
node - The <queryResultSet> node.
Method Detail

getList

public List getList()
Get the list of results.

Returns:
A list of Results.

clear

public void clear()
Clear out any results.


toXML

public Node toXML(Document doc)
           throws DOMException
Description copied from interface: Documentable
Document (aka serialize) this object into an XML DOM node.

Specified by:
toXML in interface Documentable
Parameters:
doc - What document will own the node.
Returns:
This object as an XML DOM node.
Throws:
DOMException - If an error occurs while creating the DOM structure.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

clone

public Object clone()
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

setRetriever

public void setRetriever(Retriever retriever)

getSize

public long getSize()


Copyright © 1999-2013
Apache OODT. All Rights Reserved.