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 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.test;
14:
15: import cz.cvut.kbss.jopa.model.annotations.*;
16:
17: import java.net.URI;
18: import java.util.Set;
19:
20: @OWLClass(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassA")
21: public class OWLClassA {
22:
23: @Types(fetchType = FetchType.EAGER)
24: private Set<String> types;
25:
26: @Id
27: private URI uri;
28:
29: @OWLDataProperty(iri = Vocabulary.pAStringAttribute)
30: private String stringAttribute;
31:
32: public OWLClassA() {
33: }
34:
35: public OWLClassA(URI uri) {
36: this.uri = uri;
37: }
38:
39: /**
40: * @param uri
41: * the uri to set
42: */
43: public void setUri(URI uri) {
44: this.uri = uri;
45: }
46:
47: /**
48: * @return the uri
49: */
50: public URI getUri() {
51: return uri;
52: }
53:
54: public void setStringAttribute(String stringAttribute) {
55: this.stringAttribute = stringAttribute;
56: }
57:
58: public String getStringAttribute() {
59: return stringAttribute;
60: }
61:
62: public void setTypes(Set<String> types) {
63: this.types = types;
64: }
65:
66: public Set<String> getTypes() {
67: return types;
68: }
69:
70: @Override
71: public String toString() {
72: String out = "OWLClassA: uri = " + uri;
73: out += ", stringAttribute = " + stringAttribute;
74:• if (types != null) {
75: out += ", types = {" + types.toString() + "}";
76: }
77: return out;
78: }
79:
80: public static String getClassIri() {
81: return OWLClassA.class.getDeclaredAnnotation(OWLClass.class).iri();
82: }
83: }