Skip to content

Package: OWLClassA

OWLClassA

nameinstructionbranchcomplexitylinemethod
OWLClassA()
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%
OWLClassA(URI)
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 3
100%
M: 0 C: 1
100%
getClassIri()
M: 0 C: 6
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getStringAttribute()
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%
getTypes()
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%
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%
setStringAttribute(String)
M: 0 C: 21
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
setTypes(Set)
M: 0 C: 21
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 2
100%
M: 0 C: 1
100%
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: 0 C: 71
100%
M: 0 C: 2
100%
M: 0 C: 2
100%
M: 0 C: 5
100%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (C) 2016 Czech Technical University in Prague
3: * <p>
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: * <p>
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 = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassA")
23: public class OWLClassA {
24:
25: @Types(fetchType = FetchType.EAGER)
26: private Set<String> types;
27:
28: @Id
29: private URI uri;
30:
31: @OWLDataProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#A-stringAttribute")
32: private String stringAttribute;
33:
34: public OWLClassA() {
35: }
36:
37: public OWLClassA(URI uri) {
38: this.uri = uri;
39: }
40:
41: /**
42: * @param uri
43: * the uri to set
44: */
45: public void setUri(URI uri) {
46: this.uri = uri;
47: }
48:
49: /**
50: * @return the uri
51: */
52: public URI getUri() {
53: return uri;
54: }
55:
56: public void setStringAttribute(String stringAttribute) {
57: this.stringAttribute = stringAttribute;
58: }
59:
60: public String getStringAttribute() {
61: return stringAttribute;
62: }
63:
64: public void setTypes(Set<String> types) {
65: this.types = types;
66: }
67:
68: public Set<String> getTypes() {
69: return types;
70: }
71:
72: @Override
73: public String toString() {
74: String out = "OWLClassA: uri = " + uri;
75: out += ", stringAttribute = " + stringAttribute;
76:• if (types != null) {
77: out += ", types = {" + types.toString() + "}";
78: }
79: return out;
80: }
81:
82: public static String getClassIri() {
83: return OWLClassA.class.getDeclaredAnnotation(OWLClass.class).iri();
84: }
85: }