Skip to content

Package: OWLClassN

OWLClassN

nameinstructionbranchcomplexitylinemethod
OWLClassN()
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%
getAnnotationProperty()
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%
getAnnotationUri()
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%
getId()
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%
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%
getPluralAnnotationProperty()
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%
getProperties()
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%
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%
setAnnotationProperty(String)
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%
setAnnotationUri(URI)
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%
setId(String)
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%
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%
setPluralAnnotationProperty(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%
setProperties(Map)
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%
setStringAttribute(String)
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%
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: 77 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 7 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.Map;
21: import java.util.Set;
22:
23: @OWLClass(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassN")
24: public class OWLClassN {
25:
26: @Id(generated = true)
27: private String id;
28:
29: @OWLAnnotationProperty(iri = Vocabulary.P_N_STR_ANNOTATION_PROPERTY)
30: private String annotationProperty;
31:
32: @OWLAnnotationProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#annotationUri")
33: private URI annotationUri;
34:
35: @ParticipationConstraints(nonEmpty = true)
36: @OWLDataProperty(iri = Vocabulary.P_N_STRING_ATTRIBUTE)
37: private String stringAttribute;
38:
39: @OWLAnnotationProperty(iri = Vocabulary.DC_SOURCE)
40: private Set<String> pluralAnnotationProperty;
41:
42: @Inferred
43: @Properties(fetchType = FetchType.LAZY)
44: private Map<String, Set<String>> properties;
45:
46: public String getId() {
47: return id;
48: }
49:
50: public void setId(String id) {
51: this.id = id;
52: }
53:
54: public String getAnnotationProperty() {
55: return annotationProperty;
56: }
57:
58: public void setAnnotationProperty(String annotationProperty) {
59: this.annotationProperty = annotationProperty;
60: }
61:
62: public URI getAnnotationUri() {
63: return annotationUri;
64: }
65:
66: public void setAnnotationUri(URI annotationUri) {
67: this.annotationUri = annotationUri;
68: }
69:
70: public String getStringAttribute() {
71: return stringAttribute;
72: }
73:
74: public void setStringAttribute(String stringAttribute) {
75: this.stringAttribute = stringAttribute;
76: }
77:
78: public Set<String> getPluralAnnotationProperty() {
79: return pluralAnnotationProperty;
80: }
81:
82: public void setPluralAnnotationProperty(Set<String> pluralAnnotationProperty) {
83: this.pluralAnnotationProperty = pluralAnnotationProperty;
84: }
85:
86: public Map<String, Set<String>> getProperties() {
87: return properties;
88: }
89:
90: public void setProperties(Map<String, Set<String>> properties) {
91: this.properties = properties;
92: }
93:
94: @Override
95: public String toString() {
96: return "OWLClassN{" +
97: "id='" + id + '\'' +
98: ", annotationProperty='" + annotationProperty + '\'' +
99: ", annotationUri=" + annotationUri +
100: ", stringAttribute='" + stringAttribute + '\'' +
101: ", properties=" + properties +
102: '}';
103: }
104: }