source: SRUServer/tags/SRUServer-1.3.0/src/main/java/eu/clarin/sru/server/SRUVersion.java @ 2645

Last change on this file since 2645 was 2645, checked in by oschonef, 11 years ago
  • tag version 1.3.0
  • 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 */
17package eu.clarin.sru.server;
18
19/**
20 * SRU version
21 */
22public enum SRUVersion {
23    /**
24     * SRU/CQL version 1.1
25     */
26    VERSION_1_1 {
27        @Override
28        int getVersionNumber() {
29            return ((1 << 16) | 1);
30        }
31
32
33        @Override
34        String getVersionString() {
35            return "1.1";
36        }
37    },
38
39    /**
40     * SRU/CQL version 1.2
41     */
42    VERSION_1_2 {
43        @Override
44        int getVersionNumber() {
45            return ((1 << 16) | 2);
46        }
47
48
49        @Override
50        String getVersionString() {
51            return "1.2";
52        }
53    };
54
55    abstract int getVersionNumber();
56
57
58    abstract String getVersionString();
59
60} // enum SRUVersion
Note: See TracBrowser for help on using the repository browser.