View Javadoc
1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.9-03/31/2009 04:14 PM(snajper)-fcs 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2009.04.30 at 06:20:20 PM CEST 
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   *         ExtrinsicObject is the mapping of the same named interface in ebRIM.
24   *         It extends RegistryObject.
25   *       
26   * 
27   * <p>Java class for ExtrinsicObjectType complex type.
28   * 
29   * <p>The following schema fragment specifies the expected content contained within this class.
30   * 
31   * <pre>
32   * &lt;complexType name="ExtrinsicObjectType">
33   *   &lt;complexContent>
34   *     &lt;extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}RegistryObjectType">
35   *       &lt;sequence>
36   *         &lt;element name="ContentVersionInfo" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}VersionInfoType" minOccurs="0"/>
37   *         &lt;element ref="{urn:ihe:iti:xds-b:2007}Document" maxOccurs="1" minOccurs="0"/>
38   *       &lt;/sequence>
39   *       &lt;attribute name="mimeType" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}LongName" default="application/octet-stream" />
40   *       &lt;attribute name="isOpaque" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
41   *     &lt;/extension>
42   *   &lt;/complexContent>
43   * &lt;/complexType>
44   * </pre>
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       * Gets the value of the contentVersionInfo property.
72       * 
73       * @return
74       *     possible object is
75       *     {@link VersionInfoType }
76       *     
77       */
78      public VersionInfoType getContentVersionInfo() {
79          return contentVersionInfo;
80      }
81  
82      /**
83       * Sets the value of the contentVersionInfo property.
84       * 
85       * @param value
86       *     allowed object is
87       *     {@link VersionInfoType }
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      * Gets the value of the mimeType property.
104      * 
105      * @return
106      *     possible object is
107      *     {@link String }
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      * Sets the value of the mimeType property.
120      * 
121      * @param value
122      *     allowed object is
123      *     {@link String }
124      *     
125      */
126     public void setMimeType(String value) {
127         this.mimeType = value;
128     }
129 
130     /**
131      * Gets the value of the isOpaque property.
132      * 
133      * @return
134      *     possible object is
135      *     {@link Boolean }
136      *     
137      */
138     public boolean isIsOpaque() {
139         if (isOpaque == null) {
140             return false;
141         } else {
142             return isOpaque;
143         }
144     }
145 
146     /**
147      * Sets the value of the isOpaque property.
148      * 
149      * @param value
150      *     allowed object is
151      *     {@link Boolean }
152      *     
153      */
154     public void setIsOpaque(Boolean value) {
155         this.isOpaque = value;
156     }
157 
158 }