Package: OWLClassY
OWLClassY
name | instruction | branch | complexity | line | method | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
OWLClassY() |
|
|
|
|
|
||||||||||||||||||||
getPluralString() |
|
|
|
|
|
||||||||||||||||||||
getSingularString() |
|
|
|
|
|
||||||||||||||||||||
getUri() |
|
|
|
|
|
||||||||||||||||||||
setPluralString(Set) |
|
|
|
|
|
||||||||||||||||||||
setSingularString(MultilingualString) |
|
|
|
|
|
||||||||||||||||||||
setUri(URI) |
|
|
|
|
|
||||||||||||||||||||
toString() |
|
|
|
|
|
Coverage
1: /*
2: * JOPA
3: * Copyright (C) 2023 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.jopa.test;
19:
20: import cz.cvut.kbss.jopa.model.MultilingualString;
21: import cz.cvut.kbss.jopa.model.annotations.Id;
22: import cz.cvut.kbss.jopa.model.annotations.OWLClass;
23: import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
24:
25: import java.io.Serializable;
26: import java.net.URI;
27: import java.util.Set;
28:
29: @OWLClass(iri = Vocabulary.C_OWL_CLASS_Y)
30: public class OWLClassY implements HasUri, Serializable {
31:
32: @Id(generated = true)
33: private URI uri;
34:
35: @OWLDataProperty(iri = Vocabulary.P_Y_SINGULAR_MULTILINGUAL_ATTRIBUTE)
36: private MultilingualString singularString;
37:
38: @OWLDataProperty(iri = Vocabulary.P_Y_PLURAL_MULTILINGUAL_ATTRIBUTE)
39: private Set<MultilingualString> pluralString;
40:
41: @Override
42: public URI getUri() {
43: return uri;
44: }
45:
46: public void setUri(URI uri) {
47: this.uri = uri;
48: }
49:
50: public MultilingualString getSingularString() {
51: return singularString;
52: }
53:
54: public void setSingularString(MultilingualString singularString) {
55: this.singularString = singularString;
56: }
57:
58: public Set<MultilingualString> getPluralString() {
59: return pluralString;
60: }
61:
62: public void setPluralString(Set<MultilingualString> pluralString) {
63: this.pluralString = pluralString;
64: }
65:
66: @Override
67: public String toString() {
68: return "OWLClassY{" +
69: "uri=" + uri +
70: ", singularString=" + singularString +
71: ", pluralString=" + pluralString +
72: '}';
73: }
74: }