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 java.util.ArrayList; 12 import java.util.List; 13 import javax.xml.bind.JAXBElement; 14 import javax.xml.bind.annotation.XmlAccessType; 15 import javax.xml.bind.annotation.XmlAccessorType; 16 import javax.xml.bind.annotation.XmlAttribute; 17 import javax.xml.bind.annotation.XmlElementRef; 18 import javax.xml.bind.annotation.XmlSchemaType; 19 import javax.xml.bind.annotation.XmlType; 20 import javax.xml.datatype.Duration; 21 import javax.xml.datatype.XMLGregorianCalendar; 22 23 24 /** 25 * A Subscription for specified Events in an ebXML V3+ registry. 26 * 27 * <p>Java class for SubscriptionType complex type. 28 * 29 * <p>The following schema fragment specifies the expected content contained within this class. 30 * 31 * <pre> 32 * <complexType name="SubscriptionType"> 33 * <complexContent> 34 * <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}RegistryObjectType"> 35 * <sequence> 36 * <element ref="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}Action" maxOccurs="unbounded" minOccurs="0"/> 37 * </sequence> 38 * <attribute name="selector" use="required" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0}referenceURI" /> 39 * <attribute name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> 40 * <attribute name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" /> 41 * <attribute name="notificationInterval" type="{http://www.w3.org/2001/XMLSchema}duration" default="P1D" /> 42 * </extension> 43 * </complexContent> 44 * </complexType> 45 * </pre> 46 * 47 * 48 */ 49 @XmlAccessorType(XmlAccessType.FIELD) 50 @XmlType(name = "SubscriptionType", propOrder = { 51 "action" 52 }) 53 public class SubscriptionType 54 extends RegistryObjectType 55 { 56 57 @XmlElementRef(name = "Action", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0", type = JAXBElement.class) 58 protected List<JAXBElement<? extends ActionType>> action; 59 @XmlAttribute(required = true) 60 protected String selector; 61 @XmlAttribute 62 @XmlSchemaType(name = "dateTime") 63 protected XMLGregorianCalendar startTime; 64 @XmlAttribute 65 @XmlSchemaType(name = "dateTime") 66 protected XMLGregorianCalendar endTime; 67 @XmlAttribute 68 protected Duration notificationInterval; 69 70 /** 71 * Gets the value of the action property. 72 * 73 * <p> 74 * This accessor method returns a reference to the live list, 75 * not a snapshot. Therefore any modification you make to the 76 * returned list will be present inside the JAXB object. 77 * This is why there is not a <CODE>set</CODE> method for the action property. 78 * 79 * <p> 80 * For example, to add a new item, do as follows: 81 * <pre> 82 * getAction().add(newItem); 83 * </pre> 84 * 85 * 86 * <p> 87 * Objects of the following type(s) are allowed in the list 88 * {@link JAXBElement }{@code <}{@link ActionType }{@code >} 89 * {@link JAXBElement }{@code <}{@link NotifyActionType }{@code >} 90 * 91 * 92 */ 93 public List<JAXBElement<? extends ActionType>> getAction() { 94 if (action == null) { 95 action = new ArrayList<>(); 96 } 97 return this.action; 98 } 99 100 /** 101 * Gets the value of the selector property. 102 * 103 * @return 104 * possible object is 105 * {@link String } 106 * 107 */ 108 public String getSelector() { 109 return selector; 110 } 111 112 /** 113 * Sets the value of the selector property. 114 * 115 * @param value 116 * allowed object is 117 * {@link String } 118 * 119 */ 120 public void setSelector(String value) { 121 this.selector = value; 122 } 123 124 /** 125 * Gets the value of the startTime property. 126 * 127 * @return 128 * possible object is 129 * {@link XMLGregorianCalendar } 130 * 131 */ 132 public XMLGregorianCalendar getStartTime() { 133 return startTime; 134 } 135 136 /** 137 * Sets the value of the startTime property. 138 * 139 * @param value 140 * allowed object is 141 * {@link XMLGregorianCalendar } 142 * 143 */ 144 public void setStartTime(XMLGregorianCalendar value) { 145 this.startTime = value; 146 } 147 148 /** 149 * Gets the value of the endTime property. 150 * 151 * @return 152 * possible object is 153 * {@link XMLGregorianCalendar } 154 * 155 */ 156 public XMLGregorianCalendar getEndTime() { 157 return endTime; 158 } 159 160 /** 161 * Sets the value of the endTime property. 162 * 163 * @param value 164 * allowed object is 165 * {@link XMLGregorianCalendar } 166 * 167 */ 168 public void setEndTime(XMLGregorianCalendar value) { 169 this.endTime = value; 170 } 171 172 /** 173 * Gets the value of the notificationInterval property. 174 * 175 * @return 176 * possible object is 177 * {@link Duration } 178 * 179 */ 180 public Duration getNotificationInterval() { 181 return notificationInterval; 182 } 183 184 /** 185 * Sets the value of the notificationInterval property. 186 * 187 * @param value 188 * allowed object is 189 * {@link Duration } 190 * 191 */ 192 public void setNotificationInterval(Duration value) { 193 this.notificationInterval = value; 194 } 195 196 }