1
2
3
4
5
6
7
8
9 package org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rim;
10
11 import lombok.Getter;
12 import lombok.Setter;
13 import org.openehealth.ipf.commons.ihe.xds.core.ExtraMetadataHolder;
14
15 import javax.activation.DataHandler;
16 import javax.xml.bind.annotation.*;
17 import java.util.List;
18 import java.util.Map;
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "ExtrinsicObjectType", propOrder = {
50 "contentVersionInfo", "dataHandler"
51 })
52 public class ExtrinsicObjectType
53 extends RegistryObjectType
54 implements ExtraMetadataHolder
55 {
56
57 @XmlElement(name = "ContentVersionInfo")
58 protected VersionInfoType contentVersionInfo;
59 @XmlElement(name = "Document", namespace = "urn:ihe:iti:xds-b:2007")
60 @XmlMimeType("application/octet-stream")
61 protected DataHandler dataHandler;
62 @XmlAttribute
63 protected String mimeType;
64 @XmlAttribute
65 protected Boolean isOpaque;
66
67 @XmlTransient
68 @Getter @Setter private Map<String, List<String>> extraMetadata;
69
70
71
72
73
74
75
76
77
78 public VersionInfoType getContentVersionInfo() {
79 return contentVersionInfo;
80 }
81
82
83
84
85
86
87
88
89
90 public void setContentVersionInfo(VersionInfoType value) {
91 this.contentVersionInfo = value;
92 }
93
94 public DataHandler getDataHandler() {
95 return dataHandler;
96 }
97
98 public void setDataHandler(DataHandler dataHandler) {
99 this.dataHandler = dataHandler;
100 }
101
102
103
104
105
106
107
108
109
110 public String getMimeType() {
111 if (mimeType == null) {
112 return "application/octet-stream";
113 } else {
114 return mimeType;
115 }
116 }
117
118
119
120
121
122
123
124
125
126 public void setMimeType(String value) {
127 this.mimeType = value;
128 }
129
130
131
132
133
134
135
136
137
138 public boolean isIsOpaque() {
139 if (isOpaque == null) {
140 return false;
141 } else {
142 return isOpaque;
143 }
144 }
145
146
147
148
149
150
151
152
153
154 public void setIsOpaque(Boolean value) {
155 this.isOpaque = value;
156 }
157
158 }