Skip to content

Package: OWLClassWithQueryAttr5

OWLClassWithQueryAttr5

nameinstructionbranchcomplexitylinemethod
OWLClassWithQueryAttr5()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
OWLClassWithQueryAttr5(URI)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
getPersistenceContext()
M: 0 C: 10
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getPluralAttribute()
M: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getPluralQueryAttribute()
M: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getSparqlQuery()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getUri()
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%
setPersistenceContext(UnitOfWorkImpl)
M: 0 C: 11
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setPluralAttribute(Set)
M: 0 C: 18
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setPluralQueryAttribute(Set)
M: 4 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
setUri(URI)
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: 2
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
toString()
M: 33 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1:•/**
2: * Copyright (C) 2022 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.test;
16:
17: import cz.cvut.kbss.jopa.model.annotations.*;
18:
19: import java.net.URI;
20: import java.util.Set;
21:
22: @OWLClass(iri = Vocabulary.C_OwlClassWithQueryAttr5)
23: public class OWLClassWithQueryAttr5 implements HasUri {
24:
25: private static final String QUERY = "SELECT ?pluralAttribute\n" +
26: "WHERE {?this <" + Vocabulary.P_HAS_SIMPLE_LIST + "> ?pluralAttribute}";
27:
28: @Id
29: private URI uri;
30:
31: @OWLObjectProperty(iri = Vocabulary.P_HAS_SIMPLE_LIST, cascade = CascadeType.ALL)
32: private Set<OWLClassA> pluralAttribute;
33:
34: @Sparql(query=QUERY)
35: private Set<OWLClassA> pluralQueryAttribute;
36:
37: public OWLClassWithQueryAttr5() {
38: }
39:
40: public OWLClassWithQueryAttr5(URI uri) {
41: this.uri = uri;
42: }
43:
44: public void setUri(URI uri) {
45: this.uri = uri;
46: }
47:
48: @Override
49: public URI getUri() {
50: return uri;
51: }
52:
53: public Set<OWLClassA> getPluralAttribute() {
54: return pluralAttribute;
55: }
56:
57: public void setPluralAttribute(Set<OWLClassA> pluralAttribute) {
58: this.pluralAttribute = pluralAttribute;
59: }
60:
61: public Set<OWLClassA> getPluralQueryAttribute() {
62: return pluralQueryAttribute;
63: }
64:
65: public void setPluralQueryAttribute(Set<OWLClassA> pluralQueryAttribute) {
66: this.pluralQueryAttribute = pluralQueryAttribute;
67: }
68:
69: public static String getSparqlQuery() {
70: return QUERY;
71: }
72:
73: @Override
74: public String toString() {
75: String out = "OWLClassWithQueryAttr: uri = " + uri;
76: out += ", pluralAttribute = " + pluralAttribute;
77: return out;
78: }
79: }