Last change
on this file since 6821 was
6821,
checked in by Oliver Schonefeld, 9 years ago
|
- implement basic SRU 2.0 query handling ... kind of ...
|
-
Property svn:eol-style set to
native
|
File size:
1.2 KB
|
Line | |
---|
1 | /** |
---|
2 | * This software is copyright (c) 2011-2013 by |
---|
3 | * - 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 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 | */ |
---|
17 | package 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 | */ |
---|
24 | public 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.