Skip to contentMethod: getChild()
1: /**
2: * Copyright (C) 2023 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.query.soql;
16:
17: abstract class SoqlNode implements FilterableExpression {
18:
19: SoqlNode parent;
20: SoqlNode child;
21:
22: SoqlNode() {
23: }
24:
25: SoqlNode(SoqlNode parent) {
26: this.parent = parent;
27: }
28:
29: public boolean hasChild() {
30: return child != null;
31: }
32:
33: public SoqlNode getChild() {
34: return child;
35: }
36:
37: public SoqlNode getParent() {
38: return parent;
39: }
40:
41: public void setChild(SoqlNode child) {
42: this.child = child;
43: }
44:
45: public void setParent(SoqlNode parent) {
46: this.parent = parent;
47: }
48:
49: public abstract String getValue();
50:
51: public abstract void setValue(String value);
52:
53: public abstract String getCapitalizedValue();
54:
55: public abstract String getIri();
56:
57: public abstract void setIri(String iri);
58: }