PageRenderTime 27ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/core-server/src/main/java/com/sun/research/ws/wadl/Method.java

https://gitlab.com/jaragan/jersey
Java | 286 lines | 90 code | 19 blank | 177 comment | 6 complexity | dc729d5a8092b339c60110aafa3e5a62 MD5 | raw file
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
  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: 2014.08.06 at 11:57:31 AM CEST
  6. //
  7. package com.sun.research.ws.wadl;
  8. import java.util.ArrayList;
  9. import java.util.HashMap;
  10. import java.util.List;
  11. import java.util.Map;
  12. import javax.xml.bind.annotation.XmlAccessType;
  13. import javax.xml.bind.annotation.XmlAccessorType;
  14. import javax.xml.bind.annotation.XmlAnyAttribute;
  15. import javax.xml.bind.annotation.XmlAnyElement;
  16. import javax.xml.bind.annotation.XmlAttribute;
  17. import javax.xml.bind.annotation.XmlID;
  18. import javax.xml.bind.annotation.XmlRootElement;
  19. import javax.xml.bind.annotation.XmlSchemaType;
  20. import javax.xml.bind.annotation.XmlType;
  21. import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
  22. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  23. import javax.xml.namespace.QName;
  24. import org.w3c.dom.Element;
  25. /**
  26. * <p>Java class for anonymous complex type.
  27. *
  28. * <p>The following schema fragment specifies the expected content contained within this class.
  29. *
  30. * <pre>
  31. * &lt;complexType>
  32. * &lt;complexContent>
  33. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  34. * &lt;sequence>
  35. * &lt;element ref="{http://wadl.dev.java.net/2009/02}doc" maxOccurs="unbounded" minOccurs="0"/>
  36. * &lt;element ref="{http://wadl.dev.java.net/2009/02}request" minOccurs="0"/>
  37. * &lt;element ref="{http://wadl.dev.java.net/2009/02}response" maxOccurs="unbounded" minOccurs="0"/>
  38. * &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
  39. * &lt;/sequence>
  40. * &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
  41. * &lt;attribute name="name" type="{http://wadl.dev.java.net/2009/02}Method" />
  42. * &lt;attribute name="href" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
  43. * &lt;anyAttribute processContents='lax' namespace='##other'/>
  44. * &lt;/restriction>
  45. * &lt;/complexContent>
  46. * &lt;/complexType>
  47. * </pre>
  48. *
  49. *
  50. */
  51. @XmlAccessorType(XmlAccessType.FIELD)
  52. @XmlType(name = "", propOrder = {
  53. "doc",
  54. "request",
  55. "response",
  56. "any"
  57. })
  58. @XmlRootElement(name = "method")
  59. public class Method {
  60. protected List<Doc> doc;
  61. protected Request request;
  62. protected List<Response> response;
  63. @XmlAnyElement(lax = true)
  64. protected List<Object> any;
  65. @XmlAttribute(name = "id")
  66. @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
  67. @XmlID
  68. @XmlSchemaType(name = "ID")
  69. protected String id;
  70. @XmlAttribute(name = "name")
  71. protected String name;
  72. @XmlAttribute(name = "href")
  73. @XmlSchemaType(name = "anyURI")
  74. protected String href;
  75. @XmlAnyAttribute
  76. private Map<QName, String> otherAttributes = new HashMap<QName, String>();
  77. /**
  78. * Gets the value of the doc property.
  79. *
  80. * <p>
  81. * This accessor method returns a reference to the live list,
  82. * not a snapshot. Therefore any modification you make to the
  83. * returned list will be present inside the JAXB object.
  84. * This is why there is not a <CODE>set</CODE> method for the doc property.
  85. *
  86. * <p>
  87. * For example, to add a new item, do as follows:
  88. * <pre>
  89. * getDoc().add(newItem);
  90. * </pre>
  91. *
  92. *
  93. * <p>
  94. * Objects of the following type(s) are allowed in the list
  95. * {@link Doc }
  96. *
  97. *
  98. */
  99. public List<Doc> getDoc() {
  100. if (doc == null) {
  101. doc = new ArrayList<Doc>();
  102. }
  103. return this.doc;
  104. }
  105. /**
  106. * Gets the value of the request property.
  107. *
  108. * @return
  109. * possible object is
  110. * {@link Request }
  111. *
  112. */
  113. public Request getRequest() {
  114. return request;
  115. }
  116. /**
  117. * Sets the value of the request property.
  118. *
  119. * @param value
  120. * allowed object is
  121. * {@link Request }
  122. *
  123. */
  124. public void setRequest(Request value) {
  125. this.request = value;
  126. }
  127. /**
  128. * Gets the value of the response property.
  129. *
  130. * <p>
  131. * This accessor method returns a reference to the live list,
  132. * not a snapshot. Therefore any modification you make to the
  133. * returned list will be present inside the JAXB object.
  134. * This is why there is not a <CODE>set</CODE> method for the response property.
  135. *
  136. * <p>
  137. * For example, to add a new item, do as follows:
  138. * <pre>
  139. * getResponse().add(newItem);
  140. * </pre>
  141. *
  142. *
  143. * <p>
  144. * Objects of the following type(s) are allowed in the list
  145. * {@link Response }
  146. *
  147. *
  148. */
  149. public List<Response> getResponse() {
  150. if (response == null) {
  151. response = new ArrayList<Response>();
  152. }
  153. return this.response;
  154. }
  155. /**
  156. * Gets the value of the any property.
  157. *
  158. * <p>
  159. * This accessor method returns a reference to the live list,
  160. * not a snapshot. Therefore any modification you make to the
  161. * returned list will be present inside the JAXB object.
  162. * This is why there is not a <CODE>set</CODE> method for the any property.
  163. *
  164. * <p>
  165. * For example, to add a new item, do as follows:
  166. * <pre>
  167. * getAny().add(newItem);
  168. * </pre>
  169. *
  170. *
  171. * <p>
  172. * Objects of the following type(s) are allowed in the list
  173. * {@link Object }
  174. * {@link Element }
  175. *
  176. *
  177. */
  178. public List<Object> getAny() {
  179. if (any == null) {
  180. any = new ArrayList<Object>();
  181. }
  182. return this.any;
  183. }
  184. /**
  185. * Gets the value of the id property.
  186. *
  187. * @return
  188. * possible object is
  189. * {@link String }
  190. *
  191. */
  192. public String getId() {
  193. return id;
  194. }
  195. /**
  196. * Sets the value of the id property.
  197. *
  198. * @param value
  199. * allowed object is
  200. * {@link String }
  201. *
  202. */
  203. public void setId(String value) {
  204. this.id = value;
  205. }
  206. /**
  207. * Gets the value of the name property.
  208. *
  209. * @return
  210. * possible object is
  211. * {@link String }
  212. *
  213. */
  214. public String getName() {
  215. return name;
  216. }
  217. /**
  218. * Sets the value of the name property.
  219. *
  220. * @param value
  221. * allowed object is
  222. * {@link String }
  223. *
  224. */
  225. public void setName(String value) {
  226. this.name = value;
  227. }
  228. /**
  229. * Gets the value of the href property.
  230. *
  231. * @return
  232. * possible object is
  233. * {@link String }
  234. *
  235. */
  236. public String getHref() {
  237. return href;
  238. }
  239. /**
  240. * Sets the value of the href property.
  241. *
  242. * @param value
  243. * allowed object is
  244. * {@link String }
  245. *
  246. */
  247. public void setHref(String value) {
  248. this.href = value;
  249. }
  250. /**
  251. * Gets a map that contains attributes that aren't bound to any typed property on this class.
  252. *
  253. * <p>
  254. * the map is keyed by the name of the attribute and
  255. * the value is the string value of the attribute.
  256. *
  257. * the map returned by this method is live, and you can add new attribute
  258. * by updating the map directly. Because of this design, there's no setter.
  259. *
  260. *
  261. * @return
  262. * always non-null
  263. */
  264. public Map<QName, String> getOtherAttributes() {
  265. return otherAttributes;
  266. }
  267. }