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