Package eu.clarin.sru.server
Class SRUQueryBase<T>
- java.lang.Object
-
- eu.clarin.sru.server.SRUQueryBase<T>
-
- Type Parameters:
T- abstract syntax tree (object) for parsed queries.
- All Implemented Interfaces:
SRUQuery<T>
- Direct Known Subclasses:
CQLQueryParser.CQLQuery,SearchTermsQueryParser.SearchTermsQuery
public abstract class SRUQueryBase<T> extends Object implements SRUQuery<T>
Base class for implementing for a parsed query to be returned from aSRUQueryParser.
-
-
Field Summary
Fields Modifier and Type Field Description protected TparsedQueryprotected StringrawQuery
-
Constructor Summary
Constructors Modifier Constructor Description protectedSRUQueryBase(String rawQuery, T parsedQuery)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetParsedQuery()Get the parsed query as an abstract syntax tree.StringgetRawQuery()Get the original query as a string.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface eu.clarin.sru.server.SRUQuery
getQueryType
-
-
-
-
Method Detail
-
getRawQuery
public String getRawQuery()
Description copied from interface:SRUQueryGet the original query as a string.- Specified by:
getRawQueryin interfaceSRUQuery<T>- Returns:
- the original query
-
getParsedQuery
public T getParsedQuery()
Description copied from interface:SRUQueryGet the parsed query as an abstract syntax tree.- Specified by:
getParsedQueryin interfaceSRUQuery<T>- Returns:
- the parsed query as an abstract syntax tree.
-
-