1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.xds.core.metadata;
17
18 import lombok.EqualsAndHashCode;
19 import lombok.ToString;
20
21 import javax.xml.bind.annotation.XmlAccessType;
22 import javax.xml.bind.annotation.XmlAccessorType;
23 import javax.xml.bind.annotation.XmlAttribute;
24 import javax.xml.bind.annotation.XmlType;
25 import java.io.Serializable;
26
27
28
29
30
31 @XmlAccessorType(XmlAccessType.FIELD)
32 @XmlType(name = "ObjectReference", propOrder = {"home", "id"})
33 @EqualsAndHashCode(doNotUseGetters = true)
34 @ToString(doNotUseGetters = true)
35 public class ObjectReference implements Serializable {
36 private static final long serialVersionUID = 5442558815484966722L;
37
38 @XmlAttribute(name = "uuid")
39 private String id;
40 @XmlAttribute(name = "homeCommunityId")
41 private String home;
42
43
44
45
46 public ObjectReference() {}
47
48
49
50
51
52
53 public ObjectReference(String id) {
54 this.id = id;
55 }
56
57
58
59
60
61
62
63
64 public ObjectReference(String id, String home) {
65 this.id = id;
66 this.home = home;
67 }
68
69
70
71
72 public String getId() {
73 return id;
74 }
75
76
77
78
79
80 public void setId(String id) {
81 this.id = id;
82 }
83
84
85
86
87 public String getHome() {
88 return home;
89 }
90
91
92
93
94
95 public void setHome(String home) {
96 this.home = home;
97 }
98
99 }