source: SRUServer/trunk/src/main/java/eu/clarin/sru/server/SRUQuery.java @ 7269

Last change on this file since 7269 was 7269, checked in by Oliver Schonefeld, 2 years ago
  • Update copyright
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/**
2 * This software is copyright (c) 2011-2022 by
3 *  - Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
4 * This is free software. You can redistribute it
5 * and/or modify it under the terms described in
6 * the GNU General Public License v3 of which you
7 * should have received a copy. Otherwise you can download
8 * it from
9 *
10 *   http://www.gnu.org/licenses/gpl-3.0.txt
11 *
12 * @copyright Leibniz-Institut fuer Deutsche Sprache (http://www.ids-mannheim.de)
13 *
14 * @license http://www.gnu.org/licenses/gpl-3.0.txt
15 *  GNU General Public License v3
16 */
17package eu.clarin.sru.server;
18
19/**
20 * Holder class for a parsed query to be returned from a {@link SRUQueryParser}.
21 *
22 * @param <T> abstract syntax tree (object) for parsed queries.
23 */
24public interface SRUQuery<T> {
25
26    /**
27     * Get the short name for this parsed query, e.g. "cql".
28     *
29     * @return the short name for the query
30     */
31    public String getQueryType();
32
33
34    /**
35     * Get the original query as a string.
36     *
37     * @return the original query
38     */
39    public String getRawQuery();
40
41
42    /**
43     * Get the parsed query as an abstract syntax tree.
44     *
45     * @return the parsed query as an abstract syntax tree.
46     */
47    public T getParsedQuery();
48
49} // interface SRUQuery
Note: See TracBrowser for help on using the repository browser.