Skip to content

Package: OWLClassP

OWLClassP

nameinstructionbranchcomplexitylinemethod
OWLClassP()
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%
getIndividualUri()
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%
getIndividuals()
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: 0 C: 13
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
getReferencedList()
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%
getSimpleList()
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%
setIndividualUri(URI)
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%
setIndividuals(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%
setProperties(Map)
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%
setReferencedList(List)
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%
setSimpleList(List)
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: 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: 0 C: 41
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 5
100%
M: 0 C: 1
100%

Coverage

1: /**
2: * Copyright (C) 2016 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.net.URL;
21: import java.util.List;
22: import java.util.Map;
23: import java.util.Set;
24:
25: @OWLClass(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassP")
26: public class OWLClassP {
27:
28: @Id(generated = true)
29: private URI uri;
30:
31: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#hasIndividual")
32: private URI individualUri;
33:
34: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#hasOtherIndividual")
35: private Set<URL> individuals;
36:
37: @Sequence(type = SequenceType.simple)
38: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#P-hasSimpleSequence")
39: private List<URI> simpleList;
40:
41: @Sequence
42: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#P-hasReferencedSequence")
43: private List<URI> referencedList;
44:
45: @Types
46: private Set<URI> types;
47:
48: @Properties(fetchType = FetchType.EAGER)
49: private Map<URI, Set<Object>> properties;
50:
51: public URI getUri() {
52: return uri;
53: }
54:
55: public void setUri(URI uri) {
56: this.uri = uri;
57: }
58:
59: public URI getIndividualUri() {
60: return individualUri;
61: }
62:
63: public void setIndividualUri(URI individualUri) {
64: this.individualUri = individualUri;
65: }
66:
67: public Set<URL> getIndividuals() {
68: return individuals;
69: }
70:
71: public void setIndividuals(Set<URL> individuals) {
72: this.individuals = individuals;
73: }
74:
75: public List<URI> getSimpleList() {
76: return simpleList;
77: }
78:
79: public void setSimpleList(List<URI> simpleList) {
80: this.simpleList = simpleList;
81: }
82:
83: public List<URI> getReferencedList() {
84: return referencedList;
85: }
86:
87: public void setReferencedList(List<URI> referencedList) {
88: this.referencedList = referencedList;
89: }
90:
91: public Set<URI> getTypes() {
92: return types;
93: }
94:
95: public void setTypes(Set<URI> types) {
96: this.types = types;
97: }
98:
99: public Map<URI, Set<Object>> getProperties() {
100: return properties;
101: }
102:
103: public void setProperties(Map<URI, Set<Object>> properties) {
104: this.properties = properties;
105: }
106:
107: @Override
108: public String toString() {
109: return "OWLClassP{" +
110: "uri=" + uri +
111: ", types=" + types +
112: ", properties=" + properties +
113: '}';
114: }
115: }