PageRenderTime 26ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/servers/sip-presence/presence/server/jaxb-pojos/src/main/java/org/mobicents/slee/sippresence/pojo/pidf/oma/NetworkAvailability.java

http://mobicents.googlecode.com/
Java | 348 lines | 92 code | 23 blank | 233 comment | 6 complexity | 10a5c661a26a0b32a02ea39ad05705c6 MD5 | raw file
Possible License(s): LGPL-3.0, GPL-3.0, LGPL-2.1, GPL-2.0, CC-BY-SA-3.0, CC0-1.0, Apache-2.0, BSD-3-Clause
  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011, Red Hat, Inc. and individual contributors
  4. * by the @authors tag. See the copyright.txt in the distribution for a
  5. * full listing of individual contributors.
  6. *
  7. * This is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU Lesser General Public License as
  9. * published by the Free Software Foundation; either version 2.1 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This software is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this software; if not, write to the Free
  19. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21. */
  22. //
  23. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
  24. // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
  25. // Any modifications to this file will be lost upon recompilation of the source schema.
  26. // Generated on: 2011.02.15 at 03:36:58 AM WET
  27. //
  28. package org.mobicents.slee.sippresence.pojo.pidf.oma;
  29. import java.util.ArrayList;
  30. import java.util.HashMap;
  31. import java.util.List;
  32. import java.util.Map;
  33. import javax.xml.bind.annotation.XmlAccessType;
  34. import javax.xml.bind.annotation.XmlAccessorType;
  35. import javax.xml.bind.annotation.XmlAnyAttribute;
  36. import javax.xml.bind.annotation.XmlAnyElement;
  37. import javax.xml.bind.annotation.XmlAttribute;
  38. import javax.xml.bind.annotation.XmlElement;
  39. import javax.xml.bind.annotation.XmlRootElement;
  40. import javax.xml.bind.annotation.XmlSchemaType;
  41. import javax.xml.bind.annotation.XmlType;
  42. import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
  43. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  44. import javax.xml.namespace.QName;
  45. import org.w3c.dom.Element;
  46. /**
  47. * <p>Java class for anonymous complex type.
  48. *
  49. * <p>The following schema fragment specifies the expected content contained within this class.
  50. *
  51. * <pre>
  52. * &lt;complexType>
  53. * &lt;complexContent>
  54. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  55. * &lt;sequence>
  56. * &lt;element name="network" maxOccurs="unbounded">
  57. * &lt;complexType>
  58. * &lt;complexContent>
  59. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  60. * &lt;sequence>
  61. * &lt;choice minOccurs="0">
  62. * &lt;element name="active" type="{urn:oma:xml:prs:pidf:oma-pres}emptyType"/>
  63. * &lt;element name="terminated" type="{urn:oma:xml:prs:pidf:oma-pres}emptyType"/>
  64. * &lt;/choice>
  65. * &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
  66. * &lt;/sequence>
  67. * &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
  68. * &lt;anyAttribute processContents='lax'/>
  69. * &lt;/restriction>
  70. * &lt;/complexContent>
  71. * &lt;/complexType>
  72. * &lt;/element>
  73. * &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
  74. * &lt;/sequence>
  75. * &lt;anyAttribute processContents='lax'/>
  76. * &lt;/restriction>
  77. * &lt;/complexContent>
  78. * &lt;/complexType>
  79. * </pre>
  80. *
  81. *
  82. */
  83. @XmlAccessorType(XmlAccessType.FIELD)
  84. @XmlType(name = "", propOrder = {
  85. "network",
  86. "any"
  87. })
  88. @XmlRootElement(name = "network-availability")
  89. public class NetworkAvailability {
  90. @XmlElement(required = true)
  91. protected List<NetworkAvailability.Network> network;
  92. @XmlAnyElement(lax = true)
  93. protected List<Object> any;
  94. @XmlAnyAttribute
  95. private Map<QName, String> otherAttributes = new HashMap<QName, String>();
  96. /**
  97. * Gets the value of the network property.
  98. *
  99. * <p>
  100. * This accessor method returns a reference to the live list,
  101. * not a snapshot. Therefore any modification you make to the
  102. * returned list will be present inside the JAXB object.
  103. * This is why there is not a <CODE>set</CODE> method for the network property.
  104. *
  105. * <p>
  106. * For example, to add a new item, do as follows:
  107. * <pre>
  108. * getNetwork().add(newItem);
  109. * </pre>
  110. *
  111. *
  112. * <p>
  113. * Objects of the following type(s) are allowed in the list
  114. * {@link NetworkAvailability.Network }
  115. *
  116. *
  117. */
  118. public List<NetworkAvailability.Network> getNetwork() {
  119. if (network == null) {
  120. network = new ArrayList<NetworkAvailability.Network>();
  121. }
  122. return this.network;
  123. }
  124. /**
  125. * Gets the value of the any property.
  126. *
  127. * <p>
  128. * This accessor method returns a reference to the live list,
  129. * not a snapshot. Therefore any modification you make to the
  130. * returned list will be present inside the JAXB object.
  131. * This is why there is not a <CODE>set</CODE> method for the any property.
  132. *
  133. * <p>
  134. * For example, to add a new item, do as follows:
  135. * <pre>
  136. * getAny().add(newItem);
  137. * </pre>
  138. *
  139. *
  140. * <p>
  141. * Objects of the following type(s) are allowed in the list
  142. * {@link Element }
  143. * {@link Object }
  144. *
  145. *
  146. */
  147. public List<Object> getAny() {
  148. if (any == null) {
  149. any = new ArrayList<Object>();
  150. }
  151. return this.any;
  152. }
  153. /**
  154. * Gets a map that contains attributes that aren't bound to any typed property on this class.
  155. *
  156. * <p>
  157. * the map is keyed by the name of the attribute and
  158. * the value is the string value of the attribute.
  159. *
  160. * the map returned by this method is live, and you can add new attribute
  161. * by updating the map directly. Because of this design, there's no setter.
  162. *
  163. *
  164. * @return
  165. * always non-null
  166. */
  167. public Map<QName, String> getOtherAttributes() {
  168. return otherAttributes;
  169. }
  170. /**
  171. * <p>Java class for anonymous complex type.
  172. *
  173. * <p>The following schema fragment specifies the expected content contained within this class.
  174. *
  175. * <pre>
  176. * &lt;complexType>
  177. * &lt;complexContent>
  178. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  179. * &lt;sequence>
  180. * &lt;choice minOccurs="0">
  181. * &lt;element name="active" type="{urn:oma:xml:prs:pidf:oma-pres}emptyType"/>
  182. * &lt;element name="terminated" type="{urn:oma:xml:prs:pidf:oma-pres}emptyType"/>
  183. * &lt;/choice>
  184. * &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
  185. * &lt;/sequence>
  186. * &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}token" />
  187. * &lt;anyAttribute processContents='lax'/>
  188. * &lt;/restriction>
  189. * &lt;/complexContent>
  190. * &lt;/complexType>
  191. * </pre>
  192. *
  193. *
  194. */
  195. @XmlAccessorType(XmlAccessType.FIELD)
  196. @XmlType(name = "", propOrder = {
  197. "active",
  198. "terminated",
  199. "any"
  200. })
  201. public static class Network {
  202. protected EmptyType active;
  203. protected EmptyType terminated;
  204. @XmlAnyElement(lax = true)
  205. protected List<Object> any;
  206. @XmlAttribute(required = true)
  207. @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
  208. @XmlSchemaType(name = "token")
  209. protected String id;
  210. @XmlAnyAttribute
  211. private Map<QName, String> otherAttributes = new HashMap<QName, String>();
  212. /**
  213. * Gets the value of the active property.
  214. *
  215. * @return
  216. * possible object is
  217. * {@link EmptyType }
  218. *
  219. */
  220. public EmptyType getActive() {
  221. return active;
  222. }
  223. /**
  224. * Sets the value of the active property.
  225. *
  226. * @param value
  227. * allowed object is
  228. * {@link EmptyType }
  229. *
  230. */
  231. public void setActive(EmptyType value) {
  232. this.active = value;
  233. }
  234. /**
  235. * Gets the value of the terminated property.
  236. *
  237. * @return
  238. * possible object is
  239. * {@link EmptyType }
  240. *
  241. */
  242. public EmptyType getTerminated() {
  243. return terminated;
  244. }
  245. /**
  246. * Sets the value of the terminated property.
  247. *
  248. * @param value
  249. * allowed object is
  250. * {@link EmptyType }
  251. *
  252. */
  253. public void setTerminated(EmptyType value) {
  254. this.terminated = value;
  255. }
  256. /**
  257. * Gets the value of the any property.
  258. *
  259. * <p>
  260. * This accessor method returns a reference to the live list,
  261. * not a snapshot. Therefore any modification you make to the
  262. * returned list will be present inside the JAXB object.
  263. * This is why there is not a <CODE>set</CODE> method for the any property.
  264. *
  265. * <p>
  266. * For example, to add a new item, do as follows:
  267. * <pre>
  268. * getAny().add(newItem);
  269. * </pre>
  270. *
  271. *
  272. * <p>
  273. * Objects of the following type(s) are allowed in the list
  274. * {@link Element }
  275. * {@link Object }
  276. *
  277. *
  278. */
  279. public List<Object> getAny() {
  280. if (any == null) {
  281. any = new ArrayList<Object>();
  282. }
  283. return this.any;
  284. }
  285. /**
  286. * Gets the value of the id property.
  287. *
  288. * @return
  289. * possible object is
  290. * {@link String }
  291. *
  292. */
  293. public String getId() {
  294. return id;
  295. }
  296. /**
  297. * Sets the value of the id property.
  298. *
  299. * @param value
  300. * allowed object is
  301. * {@link String }
  302. *
  303. */
  304. public void setId(String value) {
  305. this.id = value;
  306. }
  307. /**
  308. * Gets a map that contains attributes that aren't bound to any typed property on this class.
  309. *
  310. * <p>
  311. * the map is keyed by the name of the attribute and
  312. * the value is the string value of the attribute.
  313. *
  314. * the map returned by this method is live, and you can add new attribute
  315. * by updating the map directly. Because of this design, there's no setter.
  316. *
  317. *
  318. * @return
  319. * always non-null
  320. */
  321. public Map<QName, String> getOtherAttributes() {
  322. return otherAttributes;
  323. }
  324. }
  325. }