1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30;
17
18 import org.openehealth.ipf.commons.ihe.xds.core.ExtraMetadataHolder;
19 import org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLObjectLibrary;
20 import org.openehealth.ipf.commons.ihe.xds.core.ebxml.EbXMLRegistryPackage;
21 import org.openehealth.ipf.commons.ihe.xds.core.metadata.AvailabilityStatus;
22 import org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rim.RegistryPackageType;
23
24 import java.util.List;
25 import java.util.Map;
26
27
28
29
30
31 public class EbXMLRegistryPackage30 extends EbXMLRegistryObject30<RegistryPackageType> implements EbXMLRegistryPackage, ExtraMetadataHolder {
32
33
34
35
36
37
38
39 public EbXMLRegistryPackage30(RegistryPackageType registryPackage, EbXMLObjectLibrary objectLibrary) {
40 super(registryPackage, objectLibrary);
41 }
42
43 @Override
44 public AvailabilityStatus getStatus() {
45 return AvailabilityStatus.valueOfOpcode(getInternal().getStatus());
46 }
47
48 @Override
49 public void setStatus(AvailabilityStatus status) {
50 getInternal().setStatus(AvailabilityStatus.toQueryOpcode(status));
51 }
52
53 @Override
54 public Map<String, List<String>> getExtraMetadata() {
55 return getInternal().getExtraMetadata();
56 }
57
58 @Override
59 public void setExtraMetadata(Map<String, List<String>> map) {
60 getInternal().setExtraMetadata(map);
61 }
62 }