Skip to content

Method: getParent()

1: package cz.cvut.kbss.jopa.query.soql;
2:
3: public class SoqlNode {
4:
5: private SoqlNode parent;
6: private SoqlNode child;
7: private String value;
8: private String iri = "";
9:
10: public SoqlNode(SoqlNode parent, SoqlNode child, String value) {
11: this.parent = parent;
12: this.child = child;
13: this.value = value;
14: }
15:
16: public SoqlNode(String value) {
17: this.value = value;
18: }
19:
20: public SoqlNode(SoqlNode parent, String value) {
21: this.parent = parent;
22: this.value = value;
23: }
24:
25:
26: public boolean hasNextChild() {
27: return this.child != null;
28: }
29:
30: public SoqlNode getChild() {
31: return this.child;
32: }
33:
34: public boolean hasNextParent() {
35: return this.parent != null;
36: }
37:
38: public SoqlNode getParent() {
39: return this.parent;
40: }
41:
42: public String getValue() {
43: return this.value;
44: }
45:
46: public String getCapitalizedValue() {
47: return this.value.substring(0, 1).toUpperCase() + this.value.substring(1);
48: }
49:
50: public void setChild(SoqlNode child) {
51: this.child = child;
52: }
53:
54: public void setParent(SoqlNode parent) {
55: this.parent = parent;
56: }
57:
58: public void setValue(String value) {
59: this.value = value;
60: }
61:
62: public String getIri() {
63: return iri;
64: }
65:
66: public void setIri(String iri) {
67: this.iri = iri;
68: }
69:
70:
71: }