1 2 package org.openehealth.ipf.commons.ihe.hpd.stub.chpidd; 3 4 import javax.xml.bind.annotation.*; 5 import javax.xml.datatype.XMLGregorianCalendar; 6 import org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2.AuthRequest; 7 8 9 /** 10 * <p>Java class for DownloadRequest complex type. 11 * 12 * <p>The following schema fragment specifies the expected content contained within this class. 13 * 14 * <pre> 15 * <complexType name="DownloadRequest"> 16 * <complexContent> 17 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 18 * <sequence> 19 * <element name="authRequest" type="{urn:oasis:names:tc:DSML:2:0:core}AuthRequest" minOccurs="0"/> 20 * </sequence> 21 * <attribute name="requestID" type="{http://www.w3.org/2001/XMLSchema}string" /> 22 * <attribute name="fromDate" use="required"> 23 * <simpleType> 24 * <restriction base="{http://www.w3.org/2001/XMLSchema}dateTime"> 25 * </restriction> 26 * </simpleType> 27 * </attribute> 28 * <attribute name="toDate"> 29 * <simpleType> 30 * <restriction base="{http://www.w3.org/2001/XMLSchema}dateTime"> 31 * </restriction> 32 * </simpleType> 33 * </attribute> 34 * <attribute name="filterMyTransactions" default="true"> 35 * <simpleType> 36 * <restriction base="{http://www.w3.org/2001/XMLSchema}boolean"> 37 * </restriction> 38 * </simpleType> 39 * </attribute> 40 * </restriction> 41 * </complexContent> 42 * </complexType> 43 * </pre> 44 * 45 * 46 */ 47 @XmlAccessorType(XmlAccessType.FIELD) 48 @XmlType(name = "DownloadRequest", propOrder = { 49 "authRequest" 50 }) 51 @XmlRootElement(name = "downloadRequest") 52 public class DownloadRequest { 53 54 protected AuthRequest authRequest; 55 @XmlAttribute(name = "requestID") 56 protected String requestID; 57 @XmlAttribute(name = "fromDate", required = true) 58 protected XMLGregorianCalendar fromDate; 59 @XmlAttribute(name = "toDate") 60 protected XMLGregorianCalendar toDate; 61 @XmlAttribute(name = "filterMyTransactions") 62 protected Boolean filterMyTransactions; 63 64 /** 65 * Gets the value of the authRequest property. 66 * 67 * @return 68 * possible object is 69 * {@link AuthRequest } 70 * 71 */ 72 public AuthRequest getAuthRequest() { 73 return authRequest; 74 } 75 76 /** 77 * Sets the value of the authRequest property. 78 * 79 * @param value 80 * allowed object is 81 * {@link AuthRequest } 82 * 83 */ 84 public void setAuthRequest(AuthRequest value) { 85 this.authRequest = value; 86 } 87 88 /** 89 * Gets the value of the requestID property. 90 * 91 * @return 92 * possible object is 93 * {@link String } 94 * 95 */ 96 public String getRequestID() { 97 return requestID; 98 } 99 100 /** 101 * Sets the value of the requestID property. 102 * 103 * @param value 104 * allowed object is 105 * {@link String } 106 * 107 */ 108 public void setRequestID(String value) { 109 this.requestID = value; 110 } 111 112 /** 113 * Gets the value of the fromDate property. 114 * 115 * @return 116 * possible object is 117 * {@link XMLGregorianCalendar } 118 * 119 */ 120 public XMLGregorianCalendar getFromDate() { 121 return fromDate; 122 } 123 124 /** 125 * Sets the value of the fromDate property. 126 * 127 * @param value 128 * allowed object is 129 * {@link XMLGregorianCalendar } 130 * 131 */ 132 public void setFromDate(XMLGregorianCalendar value) { 133 this.fromDate = value; 134 } 135 136 /** 137 * Gets the value of the toDate property. 138 * 139 * @return 140 * possible object is 141 * {@link XMLGregorianCalendar } 142 * 143 */ 144 public XMLGregorianCalendar getToDate() { 145 return toDate; 146 } 147 148 /** 149 * Sets the value of the toDate property. 150 * 151 * @param value 152 * allowed object is 153 * {@link XMLGregorianCalendar } 154 * 155 */ 156 public void setToDate(XMLGregorianCalendar value) { 157 this.toDate = value; 158 } 159 160 /** 161 * Gets the value of the filterMyTransactions property. 162 * 163 * @return 164 * possible object is 165 * {@link Boolean } 166 * 167 */ 168 public boolean isFilterMyTransactions() { 169 if (filterMyTransactions == null) { 170 return true; 171 } else { 172 return filterMyTransactions; 173 } 174 } 175 176 /** 177 * Sets the value of the filterMyTransactions property. 178 * 179 * @param value 180 * allowed object is 181 * {@link Boolean } 182 * 183 */ 184 public void setFilterMyTransactions(Boolean value) { 185 this.filterMyTransactions = value; 186 } 187 188 }