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:
Cloneable

public class QueryGroup
extends Object
implements Cloneable

QueryGroup represents a set of queries that are packed together

Author:
Valia Tsagkalidou (KNUA)

Field Summary
protected  List<Query> queries
           
 
Constructor Summary
QueryGroup()
          The generic constructor
QueryGroup(List<Query> queries)
          A contructor that get an initial set of queries
 
Method Summary
 List<Query> getQueries()
           
 Query getQuery(int i)
          Retrieves the i-th query
 void setQueries(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queries

protected List<Query> queries
Constructor Detail

QueryGroup

public QueryGroup()
The generic constructor


QueryGroup

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

Parameters:
queries - the inital set of queries
Method Detail

getQueries

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

setQueries

public void setQueries(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


Copyright © 2013. All Rights Reserved.