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