edu.lehigh.swat.obione
Class ResultSet

java.lang.Object
  extended by edu.lehigh.swat.obione.ResultSet

public class ResultSet
extends java.lang.Object


Field Summary
private  java.util.Vector allResults
           
private  java.lang.String[] variables
           
 
Constructor Summary
ResultSet(java.lang.String[] vars)
           
 
Method Summary
 void addResult(java.lang.String[] result)
          Add a new set of bindings to the ResultSet.
 java.lang.String getBinding(int i, int j)
          Return the jth bind in the ith set of bindings.
 java.lang.String[] getResult(int i)
          Return the ith set of bindings.
 java.lang.String getVariable(int i)
          Return the name of the ith variable in the result set.
 java.lang.String[] getVariables()
          Return an array of strings containing the names of the variables in order.
 java.lang.String toString()
           
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variables

private java.lang.String[] variables

allResults

private java.util.Vector allResults
Constructor Detail

ResultSet

public ResultSet(java.lang.String[] vars)
Method Detail

addResult

public void addResult(java.lang.String[] result)
Add a new set of bindings to the ResultSet. A binding is specified as an array of values, where each value is the binding corresponds to a variable. In particular, the ith binding corresponds to the ith variable.


getResult

public java.lang.String[] getResult(int i)
Return the ith set of bindings.


getBinding

public java.lang.String getBinding(int i,
                                   int j)
Return the jth bind in the ith set of bindings.


getVariable

public java.lang.String getVariable(int i)
Return the name of the ith variable in the result set. Counting starts at 0.


getVariables

public java.lang.String[] getVariables()
Return an array of strings containing the names of the variables in order.


toXML

public java.lang.String toXML()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object