Skip to content

Method: getSimpleList()

1: /**
2: * Copyright (C) 2022 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.util.List;
19: import java.util.Set;
20:
21: @OWLClass(iri = Vocabulary.C_OWL_CLASS_L)
22: public class OWLClassL implements HasUri {
23:
24: @Id
25: private URI uri;
26:
27: @Sequence(type = SequenceType.simple)
28: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#C-hasSimpleSequence")
29: @ParticipationConstraints({
30: @ParticipationConstraint(min = 1,
31: owlObjectIRI = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassA")
32: })
33: private List<OWLClassA> simpleList;
34:
35: @Sequence(type = SequenceType.referenced)
36: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#C-hasReferencedSequence")
37: @ParticipationConstraints({
38: @ParticipationConstraint(max = 2,
39: owlObjectIRI = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassA")
40: })
41: private List<OWLClassA> referencedList;
42:
43: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#hasA")
44: @ParticipationConstraints({
45: @ParticipationConstraint(min = 1, max = 5,
46: owlObjectIRI = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassA")
47: })
48: private Set<OWLClassA> set;
49:
50: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#hasAExtra")
51: @ParticipationConstraints({
52: @ParticipationConstraint(min = 1,
53: owlObjectIRI = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassA")
54: })
55: private OWLClassA singleA;
56:
57: public OWLClassL() {
58: }
59:
60: public OWLClassL(URI uri) {
61: this.uri = uri;
62: }
63:
64: @Override
65: public URI getUri() {
66: return uri;
67: }
68:
69: public void setUri(URI uri) {
70: this.uri = uri;
71: }
72:
73: public List<OWLClassA> getSimpleList() {
74: return simpleList;
75: }
76:
77: public void setSimpleList(List<OWLClassA> simpleList) {
78: this.simpleList = simpleList;
79: }
80:
81: public List<OWLClassA> getReferencedList() {
82: return referencedList;
83: }
84:
85: public void setReferencedList(List<OWLClassA> referencedList) {
86: this.referencedList = referencedList;
87: }
88:
89: public Set<OWLClassA> getSet() {
90: return set;
91: }
92:
93: public void setSet(Set<OWLClassA> set) {
94: this.set = set;
95: }
96:
97: public OWLClassA getSingleA() {
98: return singleA;
99: }
100:
101: public void setSingleA(OWLClassA singleA) {
102: this.singleA = singleA;
103: }
104:
105: @Override
106: public String toString() {
107: return "OWLClassL{" +
108: "uri=" + uri +
109: ", simpleList=" + simpleList +
110: ", referencedList=" + referencedList +
111: ", set=" + set +
112: '}';
113: }
114: }