com.esri.aims.mtier.model.metadata
Class DatasetCollection

java.lang.Object
  extended by com.esri.aims.mtier.model.metadata.DatasetCollection

public class DatasetCollection
extends Object

Represents a collection of metadata documents.


Constructor Summary
DatasetCollection()
          Constructs an instance of the DataSetCollection object.
 
Method Summary
 boolean addDataset(Dataset dataSet)
          Adds the given Dataset object to the collection.
 int getNumResults()
          Returns the number of results in this collecion
 int getStartResult()
          Returns the start result index.
 int getTotal()
          Returns the total number of results for a given query.
 Dataset item(int i)
          Returns the Dataset at given index in the collection.
 boolean removeDataset(Dataset dataSet)
          Removes the specified Dataset object from the collection.
 void setNumResults(int numResults)
          Sets the number of results in this collecion.
 void setStartResult(int startResult)
          Sets the start result index.
 void setTotal(int total)
          Sets the total number of results for a given query.
 int size()
          Returns the size of this Dataset collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetCollection

public DatasetCollection()
Constructs an instance of the DataSetCollection object.

Method Detail

addDataset

public boolean addDataset(Dataset dataSet)
Adds the given Dataset object to the collection.

Parameters:
dataSet - the dataset to be added

removeDataset

public boolean removeDataset(Dataset dataSet)
Removes the specified Dataset object from the collection.

Parameters:
dataSet - the dataset to be removed.

size

public int size()
Returns the size of this Dataset collection.


getNumResults

public int getNumResults()
Returns the number of results in this collecion


setNumResults

public void setNumResults(int numResults)
Sets the number of results in this collecion.


getStartResult

public int getStartResult()
Returns the start result index.


setStartResult

public void setStartResult(int startResult)
Sets the start result index.


getTotal

public int getTotal()
Returns the total number of results for a given query.


setTotal

public void setTotal(int total)
Sets the total number of results for a given query.


item

public Dataset item(int i)
Returns the Dataset at given index in the collection.