source: FCSSimpleEndpoint/trunk/src/main/java/eu/clarin/sru/server/fcs/parser/QueryNodeType.java @ 7273

Last change on this file since 7273 was 7273, checked in by Oliver Schonefeld, 2 years ago
  • update copyright
  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1/**
2 * This software is copyright (c) 2013-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.fcs.parser;
18
19
20/**
21 * Node types of FCS-QL expression tree nodes.
22 */
23public enum QueryNodeType {
24    /**
25     * segment query
26     */
27    QUERY_SEGMENT {
28        @Override
29        String toDisplayString() {
30            return "QuerySegment";
31        }
32    },
33    /**
34     * group query
35     */
36    QUERY_GROUP {
37        @Override
38        String toDisplayString() {
39            return "QueryGroup";
40        }
41    },
42    /**
43     * sequence query
44     */
45    QUERY_SEQUENCE {
46        @Override
47        String toDisplayString() {
48            return "QuerySequence";
49        }
50    },
51    /**
52     * or query
53     */
54    QUERY_DISJUNCTION {
55        @Override
56        String toDisplayString() {
57            return "QueryDisjunction";
58        }
59    },
60    /**
61     * query with within part
62     */
63    QUERY_WITH_WITHIN {
64        @Override
65        String toDisplayString() {
66            return "QueryWithWithin";
67        }
68    },
69    /**
70     * simple expression
71     */
72    EXPRESSION {
73        @Override
74        String toDisplayString() {
75            return "Expression";
76        }
77    },
78    /**
79     * wildcard expression
80     */
81    EXPRESSION_WILDCARD {
82        @Override
83        String toDisplayString() {
84            return "Wildcard";
85        }
86    },
87    /**
88     * group expression
89     */
90    EXPRESSION_GROUP {
91        @Override
92        String toDisplayString() {
93            return "Group";
94        }
95    },
96    /**
97     * or expression
98     */
99    EXPRESSION_OR {
100        @Override
101        String toDisplayString() {
102            return "Or";
103        }
104    },
105    /**
106     * and expression
107     */
108    EXPRESSION_AND {
109        @Override
110        String toDisplayString() {
111            return "And";
112        }
113    },
114    /**
115     * not expression
116     */
117    EXPRESSION_NOT {
118        @Override
119        String toDisplayString() {
120            return "Not";
121        }
122    },
123    /**
124     * simple within part
125     */
126    SIMPLE_WITHIN {
127        @Override
128        String toDisplayString() {
129            return "SimpleWithin";
130        }
131    };
132
133    abstract String toDisplayString();
134
135} // enum QueryNodeType
Note: See TracBrowser for help on using the repository browser.