org.gcube.application.framework.search.library.model
Class QueryGroup

java.lang.Object
  extended by org.gcube.application.framework.search.library.model.QueryGroup
All Implemented Interfaces:
java.lang.Cloneable

public class QueryGroup
extends java.lang.Object
implements java.lang.Cloneable

QueryGroup represents a set of queries that are packed together

Author:
Valia Tsagkalidou (KNUA)

Constructor Summary
QueryGroup()
          The generic constructor
QueryGroup(java.util.List<Query> queries)
          A contructor that get an initial set of queries
 
Method Summary
 java.util.List<Query> getQueries()
           
 Query getQuery(int i)
          Retrieves the i-th query
 void setQueries(java.util.List<Query> queries)
          Sets the queries
 void setQuery(Query query)
          Adds a new query to the list of queries
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryGroup

public QueryGroup()
The generic constructor


QueryGroup

public QueryGroup(java.util.List<Query> queries)
A contructor that get an initial set of queries

Parameters:
queries - the inital set of queries
Method Detail

getQueries

public java.util.List<Query> getQueries()
Returns:
the queries

setQueries

public void setQueries(java.util.List<Query> queries)
Sets the queries

Parameters:
queries - the queries

getQuery

public Query getQuery(int i)
Retrieves the i-th query

Parameters:
i - the position in the list where the desired query rests
Returns:
the query

setQuery

public void setQuery(Query query)
Adds a new query to the list of queries

Parameters:
query - the query