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