Skip to content

Method: getCreated()

1: package cz.cvut.kbss.jopa.test;
2:
3: import cz.cvut.kbss.jopa.model.annotations.Id;
4: import cz.cvut.kbss.jopa.model.annotations.OWLClass;
5: import cz.cvut.kbss.jopa.model.annotations.OWLDataProperty;
6:
7: import java.net.URI;
8: import java.time.LocalDate;
9:
10: @OWLClass(iri = "urn:jopa:model:class-with-urn")
11: public class OWLClassWithUrn implements HasUri {
12:
13: @Id
14: private URI uri;
15:
16: @OWLDataProperty(iri = "urn:jopa:model:label")
17: private String label;
18:
19: @OWLDataProperty(iri = "urn:jopa:model:created")
20: private LocalDate created;
21:
22: @Override
23: public URI getUri() {
24: return uri;
25: }
26:
27: public void setUri(URI uri) {
28: this.uri = uri;
29: }
30:
31: public String getLabel() {
32: return label;
33: }
34:
35: public void setLabel(String label) {
36: this.label = label;
37: }
38:
39: public LocalDate getCreated() {
40: return created;
41: }
42:
43: public void setCreated(LocalDate created) {
44: this.created = created;
45: }
46:
47: @Override
48: public String toString() {
49: return "OWLClassWithUrn{" +
50: "uri=" + uri +
51: ", label='" + label + '\'' +
52: ", created=" + created +
53: '}';
54: }
55: }