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 T
parsedQuery
protected String
rawQuery
-
Constructor Summary
Constructors Modifier Constructor Description protected
SRUQueryBase(String rawQuery, T parsedQuery)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getParsedQuery()
Get the parsed query as an abstract syntax tree.String
getRawQuery()
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:SRUQuery
Get the original query as a string.- Specified by:
getRawQuery
in interfaceSRUQuery<T>
- Returns:
- the original query
-
getParsedQuery
public T getParsedQuery()
Description copied from interface:SRUQuery
Get the parsed query as an abstract syntax tree.- Specified by:
getParsedQuery
in interfaceSRUQuery<T>
- Returns:
- the parsed query as an abstract syntax tree.
-
-