1 package org.fosstrak.epcis.model; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 import javax.xml.bind.annotation.XmlAccessType; 6 import javax.xml.bind.annotation.XmlAccessorType; 7 import javax.xml.bind.annotation.XmlAnyElement; 8 import javax.xml.bind.annotation.XmlSchemaType; 9 import javax.xml.bind.annotation.XmlType; 10 import javax.xml.datatype.XMLGregorianCalendar; 11 import org.w3c.dom.Element; 12 13 /** 14 * <p> 15 * Java class for SubscriptionControls complex type. 16 * <p> 17 * The following schema fragment specifies the expected content contained within 18 * this class. 19 * 20 * <pre> 21 * <complexType name="SubscriptionControls"> 22 * <complexContent> 23 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 24 * <sequence> 25 * <element name="schedule" type="{urn:epcglobal:epcis-query:xsd:1}QuerySchedule" minOccurs="0"/> 26 * <element name="trigger" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> 27 * <element name="initialRecordTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> 28 * <element name="reportIfEmpty" type="{http://www.w3.org/2001/XMLSchema}boolean"/> 29 * <element name="extension" type="{urn:epcglobal:epcis-query:xsd:1}SubscriptionControlsExtensionType" minOccurs="0"/> 30 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 31 * </sequence> 32 * </restriction> 33 * </complexContent> 34 * </complexType> 35 * </pre> 36 */ 37 @XmlAccessorType(XmlAccessType.FIELD) 38 @XmlType(name = "SubscriptionControls", propOrder = { 39 "schedule", "trigger", "initialRecordTime", "reportIfEmpty", "extension", "any" }) 40 public class SubscriptionControls { 41 42 protected QuerySchedule schedule; 43 @XmlSchemaType(name = "anyURI") 44 protected String trigger; 45 @XmlSchemaType(name = "dateTime") 46 protected XMLGregorianCalendar initialRecordTime; 47 protected boolean reportIfEmpty; 48 protected SubscriptionControlsExtensionType extension; 49 @XmlAnyElement(lax = true) 50 protected List<Object> any; 51 52 /** 53 * Gets the value of the schedule property. 54 * 55 * @return possible object is {@link QuerySchedule } 56 */ 57 public QuerySchedule getSchedule() { 58 return schedule; 59 } 60 61 /** 62 * Sets the value of the schedule property. 63 * 64 * @param value 65 * allowed object is {@link QuerySchedule } 66 */ 67 public void setSchedule(QuerySchedule value) { 68 this.schedule = value; 69 } 70 71 /** 72 * Gets the value of the trigger property. 73 * 74 * @return possible object is {@link String } 75 */ 76 public String getTrigger() { 77 return trigger; 78 } 79 80 /** 81 * Sets the value of the trigger property. 82 * 83 * @param value 84 * allowed object is {@link String } 85 */ 86 public void setTrigger(String value) { 87 this.trigger = value; 88 } 89 90 /** 91 * Gets the value of the initialRecordTime property. 92 * 93 * @return possible object is {@link XMLGregorianCalendar } 94 */ 95 public XMLGregorianCalendar getInitialRecordTime() { 96 return initialRecordTime; 97 } 98 99 /** 100 * Sets the value of the initialRecordTime property. 101 * 102 * @param value 103 * allowed object is {@link XMLGregorianCalendar } 104 */ 105 public void setInitialRecordTime(XMLGregorianCalendar value) { 106 this.initialRecordTime = value; 107 } 108 109 /** 110 * Gets the value of the reportIfEmpty property. 111 */ 112 public boolean isReportIfEmpty() { 113 return reportIfEmpty; 114 } 115 116 /** 117 * Sets the value of the reportIfEmpty property. 118 */ 119 public void setReportIfEmpty(boolean value) { 120 this.reportIfEmpty = value; 121 } 122 123 /** 124 * Gets the value of the extension property. 125 * 126 * @return possible object is {@link SubscriptionControlsExtensionType } 127 */ 128 public SubscriptionControlsExtensionType getExtension() { 129 return extension; 130 } 131 132 /** 133 * Sets the value of the extension property. 134 * 135 * @param value 136 * allowed object is {@link SubscriptionControlsExtensionType } 137 */ 138 public void setExtension(SubscriptionControlsExtensionType value) { 139 this.extension = value; 140 } 141 142 /** 143 * Gets the value of the any property. 144 * <p> 145 * This accessor method returns a reference to the live list, not a 146 * snapshot. Therefore any modification you make to the returned list will 147 * be present inside the JAXB object. This is why there is not a 148 * <CODE>set</CODE> method for the any property. 149 * <p> 150 * For example, to add a new item, do as follows: 151 * 152 * <pre> 153 * getAny().add(newItem); 154 * </pre> 155 * <p> 156 * Objects of the following type(s) are allowed in the list {@link Element } 157 * {@link Object } 158 */ 159 public List<Object> getAny() { 160 if (any == null) { 161 any = new ArrayList<Object>(); 162 } 163 return this.any; 164 } 165 166 }