org.gcube.dir.master.queries
Class DefaultQuery

java.lang.Object
  extended by org.gcube.dir.master.queries.DefaultQuery
All Implemented Interfaces:
Query

public class DefaultQuery
extends java.lang.Object
implements Query

The default model of queries as collection of DefaultQueryTerm.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
DefaultQuery(java.util.List<? extends DefaultQueryTerm> terms)
          Creates an instance from a list of terms.
 
Method Summary
 java.util.List<? extends DefaultQueryTerm> getTerms()
          Returns the query terms.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQuery

public DefaultQuery(java.util.List<? extends DefaultQueryTerm> terms)
Creates an instance from a list of terms.

Parameters:
terms - the terms.
Method Detail

getTerms

public java.util.List<? extends DefaultQueryTerm> getTerms()
Returns the query terms.

Returns:
the terms.