Skip to content

Package: OWLClassX

OWLClassX

nameinstructionbranchcomplexitylinemethod
OWLClassX()
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%
getACollection()
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%
getInstant()
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%
getLocalDate()
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%
getLocalDateTime()
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%
getObjectAnnotation()
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%
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%
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%
setACollection(Collection)
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%
setInstant(Instant)
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%
setLocalDate(LocalDate)
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%
setLocalDateTime(LocalDateTime)
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%
setObjectAnnotation(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%
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: 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: 71 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) 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.*;
16:
17: import java.net.URI;
18: import java.time.Instant;
19: import java.time.LocalDate;
20: import java.time.LocalDateTime;
21: import java.util.Collection;
22: import java.util.Set;
23:
24: @OWLClass(iri = Vocabulary.C_OWL_CLASS_X)
25: public class OWLClassX {
26:
27: @Id(generated = true)
28: private URI uri;
29:
30: @OWLDataProperty(iri = Vocabulary.P_X_LOCAL_DATE_ATTRIBUTE)
31: private LocalDate localDate;
32:
33: @OWLDataProperty(iri = Vocabulary.P_X_LOCAL_DATETIME_ATTRIBUTE)
34: private LocalDateTime localDateTime;
35:
36: @OWLDataProperty(iri = Vocabulary.P_X_INSTANT_ATTRIBUTE)
37: private Instant instant;
38:
39: @OWLAnnotationProperty(iri = Vocabulary.P_X_OBJECT_ATTRIBUTE)
40: private Set<Object> objectAnnotation;
41:
42: @OWLObjectProperty(iri = Vocabulary.P_X_COLLECTION_ATTRIBUTE, cascade = CascadeType.PERSIST)
43: private Collection<OWLClassA> aCollection;
44:
45: public URI getUri() {
46: return uri;
47: }
48:
49: public void setUri(URI uri) {
50: this.uri = uri;
51: }
52:
53: public LocalDate getLocalDate() {
54: return localDate;
55: }
56:
57: public void setLocalDate(LocalDate localDate) {
58: this.localDate = localDate;
59: }
60:
61: public LocalDateTime getLocalDateTime() {
62: return localDateTime;
63: }
64:
65: public void setLocalDateTime(LocalDateTime localDateTime) {
66: this.localDateTime = localDateTime;
67: }
68:
69: public Instant getInstant() {
70: return instant;
71: }
72:
73: public void setInstant(Instant instant) {
74: this.instant = instant;
75: }
76:
77: public Set<Object> getObjectAnnotation() {
78: return objectAnnotation;
79: }
80:
81: public void setObjectAnnotation(Set<Object> objectAnnotation) {
82: this.objectAnnotation = objectAnnotation;
83: }
84:
85: public Collection<OWLClassA> getACollection() {
86: return aCollection;
87: }
88:
89: public void setACollection(Collection<OWLClassA> aCollection) {
90: this.aCollection = aCollection;
91: }
92:
93: @Override
94: public String toString() {
95: return "OWLClassX{" +
96: "uri=" + uri +
97: ", localDate=" + localDate +
98: ", localDateTime=" + localDateTime +
99: ", instant=" + instant +
100: ", objectAnnotation=" + objectAnnotation +
101: '}';
102: }
103: }