Skip to content

Package: OWLClassR

OWLClassR

nameinstructionbranchcomplexitylinemethod
OWLClassR()
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%
equals(Object)
M: 43 C: 0
0%
M: 6 C: 0
0%
M: 4 C: 0
0%
M: 6 C: 0
0%
M: 1 C: 0
0%
getName()
M: 13 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getPersistenceContext()
M: 3 C: 7
70%
M: 1 C: 1
50%
M: 1 C: 1
50%
M: 0 C: 1
100%
M: 0 C: 1
100%
getUri()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
hashCode()
M: 0 C: 14
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
setName(String)
M: 18 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
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%
setUri(URI)
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%
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: 28 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 4 C: 0
0%
M: 1 C: 0
0%

Coverage

1:•/**
2: * Copyright (C) 2020 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.Id;
16: import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty;
17: import cz.cvut.kbss.jopa.model.annotations.OWLClass;
18: import cz.cvut.kbss.jopa.vocabulary.RDFS;
19:
20: import java.net.URI;
21: import java.util.Objects;
22:
23: @OWLClass(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassR")
24: public class OWLClassR {
25:
26: @Id
27: private URI uri;
28:
29: @OWLAnnotationProperty(iri = RDFS.LABEL)
30: private String name;
31:
32: public URI getUri() {
33: return uri;
34: }
35:
36: public void setUri(URI uri) {
37: this.uri = uri;
38: }
39:
40: public String getName() {
41: return name;
42: }
43:
44: public void setName(String name) {
45: this.name = name;
46: }
47:
48: @Override
49: public boolean equals(Object o) {
50:• if (this == o) {
51: return true;
52: }
53:• if (o == null || getClass() != o.getClass()) {
54: return false;
55: }
56:
57: OWLClassR owlClassR = (OWLClassR) o;
58:
59: return Objects.equals(name, owlClassR.name);
60:
61: }
62:
63: @Override
64: public int hashCode() {
65: return Objects.hashCode(name);
66: }
67:
68: @Override
69: public String toString() {
70: return "OWLClassR{" +
71: "uri=" + uri +
72: ", name='" + name + '\'' +
73: '}';
74: }
75: }