/fosstrak/scr/reader-0.5.0/reader-rprm-core/src/main/java/org/fosstrak/reader/rprm/core/msg/command/TagType.java

https://bitbucket.org/paulchai/mw-rfid · Java · 281 lines · 78 code · 20 blank · 183 comment · 6 complexity · 4e72f6a4994741ff85e22c34abb4158a MD5 · raw file

  1. /*
  2. * Copyright (C) 2007 ETH Zurich
  3. *
  4. * This file is part of Fosstrak (www.fosstrak.org).
  5. *
  6. * Fosstrak is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License version 2.1, as published by the Free Software Foundation.
  9. *
  10. * Fosstrak is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with Fosstrak; if not, write to the Free
  17. * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301 USA
  19. */
  20. //
  21. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b26-ea3
  22. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  23. // Any modifications to this file will be lost upon recompilation of the source schema.
  24. // Generated on: 2006.07.05 at 05:03:34 PM CEST
  25. //
  26. package org.fosstrak.reader.rprm.core.msg.command;
  27. import java.util.ArrayList;
  28. import java.util.List;
  29. import javax.xml.bind.annotation.XmlAccessType;
  30. import javax.xml.bind.annotation.XmlAccessorType;
  31. import javax.xml.bind.annotation.XmlAnyElement;
  32. import javax.xml.bind.annotation.XmlElement;
  33. import javax.xml.bind.annotation.XmlType;
  34. import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
  35. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  36. import org.fosstrak.reader.rprm.core.msg.command.TagEventType;
  37. import org.fosstrak.reader.rprm.core.msg.command.TagFieldValueParamType;
  38. import org.fosstrak.reader.rprm.core.msg.command.TagType;
  39. import org.w3c.dom.Element;
  40. /**
  41. * tag with associated events
  42. *
  43. * <p>Java class for TagType complex type.
  44. *
  45. * <p>The following schema fragment specifies the expected content contained within this class.
  46. *
  47. * <pre>
  48. * &lt;complexType name="TagType">
  49. * &lt;complexContent>
  50. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  51. * &lt;sequence>
  52. * &lt;element name="tagID" type="{http://www.w3.org/2001/XMLSchema}hexBinary" minOccurs="0"/>
  53. * &lt;element name="tagIDAsPureURI" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  54. * &lt;element name="tagIDAsTagURI" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  55. * &lt;element name="tagType" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
  56. * &lt;element name="tagEvent" type="{urn:epcglobal:rp:xsd:1}TagEventType" maxOccurs="unbounded" minOccurs="0"/>
  57. * &lt;element name="tagFields" type="{urn:epcglobal:rp:xsd:1}TagFieldValueParamType" maxOccurs="unbounded" minOccurs="0"/>
  58. * &lt;any/>
  59. * &lt;/sequence>
  60. * &lt;/restriction>
  61. * &lt;/complexContent>
  62. * &lt;/complexType>
  63. * </pre>
  64. *
  65. *
  66. */
  67. @XmlAccessorType(XmlAccessType.FIELD)
  68. @XmlType(name = "TagType", propOrder = {
  69. "tagID",
  70. "tagIDAsPureURI",
  71. "tagIDAsTagURI",
  72. "tagType",
  73. "tagEvent",
  74. "tagFields",
  75. "any"
  76. })
  77. public class TagType {
  78. @XmlElement(type = String.class)
  79. @XmlJavaTypeAdapter(HexBinaryAdapter.class)
  80. protected byte[] tagID;
  81. protected String tagIDAsPureURI;
  82. protected String tagIDAsTagURI;
  83. protected String tagType;
  84. protected List<TagEventType> tagEvent;
  85. protected List<TagFieldValueParamType> tagFields;
  86. @XmlAnyElement(lax = true)
  87. protected List<Object> any;
  88. /**
  89. * Gets the value of the tagID property.
  90. *
  91. * @return
  92. * possible object is
  93. * {@link String }
  94. *
  95. */
  96. public byte[] getTagID() {
  97. return tagID;
  98. }
  99. /**
  100. * Sets the value of the tagID property.
  101. *
  102. * @param value
  103. * allowed object is
  104. * {@link String }
  105. *
  106. */
  107. public void setTagID(byte[] value) {
  108. this.tagID = ((byte[]) value);
  109. }
  110. /**
  111. * Gets the value of the tagIDAsPureURI property.
  112. *
  113. * @return
  114. * possible object is
  115. * {@link String }
  116. *
  117. */
  118. public String getTagIDAsPureURI() {
  119. return tagIDAsPureURI;
  120. }
  121. /**
  122. * Sets the value of the tagIDAsPureURI property.
  123. *
  124. * @param value
  125. * allowed object is
  126. * {@link String }
  127. *
  128. */
  129. public void setTagIDAsPureURI(String value) {
  130. this.tagIDAsPureURI = value;
  131. }
  132. /**
  133. * Gets the value of the tagIDAsTagURI property.
  134. *
  135. * @return
  136. * possible object is
  137. * {@link String }
  138. *
  139. */
  140. public String getTagIDAsTagURI() {
  141. return tagIDAsTagURI;
  142. }
  143. /**
  144. * Sets the value of the tagIDAsTagURI property.
  145. *
  146. * @param value
  147. * allowed object is
  148. * {@link String }
  149. *
  150. */
  151. public void setTagIDAsTagURI(String value) {
  152. this.tagIDAsTagURI = value;
  153. }
  154. /**
  155. * Gets the value of the tagType property.
  156. *
  157. * @return
  158. * possible object is
  159. * {@link String }
  160. *
  161. */
  162. public String getTagType() {
  163. return tagType;
  164. }
  165. /**
  166. * Sets the value of the tagType property.
  167. *
  168. * @param value
  169. * allowed object is
  170. * {@link String }
  171. *
  172. */
  173. public void setTagType(String value) {
  174. this.tagType = value;
  175. }
  176. /**
  177. * Gets the value of the tagEvent property.
  178. *
  179. * <p>
  180. * This accessor method returns a reference to the live list,
  181. * not a snapshot. Therefore any modification you make to the
  182. * returned list will be present inside the JAXB object.
  183. * This is why there is not a <CODE>set</CODE> method for the tagEvent property.
  184. *
  185. * <p>
  186. * For example, to add a new item, do as follows:
  187. * <pre>
  188. * getTagEvent().add(newItem);
  189. * </pre>
  190. *
  191. *
  192. * <p>
  193. * Objects of the following type(s) are allowed in the list
  194. * {@link TagEventType }
  195. *
  196. *
  197. */
  198. public List<TagEventType> getTagEvent() {
  199. if (tagEvent == null) {
  200. tagEvent = new ArrayList<TagEventType>();
  201. }
  202. return this.tagEvent;
  203. }
  204. /**
  205. * Gets the value of the tagFields property.
  206. *
  207. * <p>
  208. * This accessor method returns a reference to the live list,
  209. * not a snapshot. Therefore any modification you make to the
  210. * returned list will be present inside the JAXB object.
  211. * This is why there is not a <CODE>set</CODE> method for the tagFields property.
  212. *
  213. * <p>
  214. * For example, to add a new item, do as follows:
  215. * <pre>
  216. * getTagFields().add(newItem);
  217. * </pre>
  218. *
  219. *
  220. * <p>
  221. * Objects of the following type(s) are allowed in the list
  222. * {@link TagFieldValueParamType }
  223. *
  224. *
  225. */
  226. public List<TagFieldValueParamType> getTagFields() {
  227. if (tagFields == null) {
  228. tagFields = new ArrayList<TagFieldValueParamType>();
  229. }
  230. return this.tagFields;
  231. }
  232. /**
  233. * Gets the value of the any property.
  234. *
  235. * <p>
  236. * This accessor method returns a reference to the live list,
  237. * not a snapshot. Therefore any modification you make to the
  238. * returned list will be present inside the JAXB object.
  239. * This is why there is not a <CODE>set</CODE> method for the any property.
  240. *
  241. * <p>
  242. * For example, to add a new item, do as follows:
  243. * <pre>
  244. * getAny().add(newItem);
  245. * </pre>
  246. *
  247. *
  248. * <p>
  249. * Objects of the following type(s) are allowed in the list
  250. * {@link Object }
  251. * {@link Element }
  252. *
  253. *
  254. */
  255. public List<Object> getAny() {
  256. if (any == null) {
  257. any = new ArrayList<Object>();
  258. }
  259. return this.any;
  260. }
  261. }