mls.domain
Class Results

java.lang.Object
  |
  +--mls.domain.Results

public class Results
extends java.lang.Object

The results of an MLS query. Supports caching by the use of subsets.


Field Summary
 boolean more
          True if there are more results in the parent results set
 Property[] properties
          The set of property results
 int startIndex
          The index at which this results set begins (0 if the parent set)
 
Constructor Summary
Results()
          Default constructor
 
Method Summary
 Results getSubset(int start, int length)
          Return a subset of the properties beginning at 'start' and of length 'length'.
static Results getTest()
          Return a test results set
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

startIndex

public int startIndex
The index at which this results set begins (0 if the parent set)

more

public boolean more
True if there are more results in the parent results set

properties

public Property[] properties
The set of property results
Constructor Detail

Results

public Results()
Default constructor
Method Detail

getSubset

public Results getSubset(int start,
                         int length)
Return a subset of the properties beginning at 'start' and of length 'length'. Set attributes of the subset to indicate if there are more results in the parent results set and to specify the start index
Parameters:
start - the starting index
length - the number of properties to return
Returns:
a subset of the properties

getTest

public static Results getTest()
Return a test results set
Returns:
a test results set