Skip to content

Package: AttributeNode

AttributeNode

nameinstructionbranchcomplexitylinemethod
AttributeNode(SoqlNode, String)
M: 0 C: 10
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
AttributeNode(String)
M: 0 C: 9
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 4
100%
M: 0 C: 1
100%
getCapitalizedValue()
M: 4 C: 21
84%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 0 C: 2
100%
M: 0 C: 1
100%
getIri()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getValue()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
requiresFilterExpression()
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setIri(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setValue(String)
M: 0 C: 4
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
static {...}
M: 0 C: 1
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
toFilterExpression(String, String)
M: 0 C: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

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