PageRenderTime 50ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/src/org/xmcda/v2/AttributesSet.java

https://gitlab.com/XMCDA-library/XMCDA-java
Java | 369 lines | 104 code | 26 blank | 239 comment | 6 complexity | fd793bc9003884e72a656dfcf6509d63 MD5 | raw file
  1. //
  2. // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
  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: 2016.11.30 at 02:37:50 PM CET
  6. //
  7. package org.xmcda.v2;
  8. import java.util.ArrayList;
  9. import java.util.List;
  10. import javax.xml.bind.JAXBElement;
  11. import javax.xml.bind.annotation.XmlAccessType;
  12. import javax.xml.bind.annotation.XmlAccessorType;
  13. import javax.xml.bind.annotation.XmlAttribute;
  14. import javax.xml.bind.annotation.XmlElement;
  15. import javax.xml.bind.annotation.XmlElementRef;
  16. import javax.xml.bind.annotation.XmlElementRefs;
  17. import javax.xml.bind.annotation.XmlElements;
  18. import javax.xml.bind.annotation.XmlType;
  19. /**
  20. * A "valued", possibly ordered, set of attributes.
  21. *
  22. * <p>Java class for attributesSet complex type.
  23. *
  24. * <p>The following schema fragment specifies the expected content contained within this class.
  25. *
  26. * <pre>
  27. * &lt;complexType name="attributesSet">
  28. * &lt;complexContent>
  29. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  30. * &lt;sequence>
  31. * &lt;element name="description" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}description" minOccurs="0"/>
  32. * &lt;element name="element" maxOccurs="unbounded" minOccurs="0">
  33. * &lt;complexType>
  34. * &lt;complexContent>
  35. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  36. * &lt;sequence>
  37. * &lt;element name="description" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}description" minOccurs="0"/>
  38. * &lt;element name="attributeID" type="{http://www.w3.org/2001/XMLSchema}string"/>
  39. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  40. * &lt;element name="rank" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}value"/>
  41. * &lt;element name="value" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}value"/>
  42. * &lt;element name="values" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}values"/>
  43. * &lt;/choice>
  44. * &lt;/sequence>
  45. * &lt;/restriction>
  46. * &lt;/complexContent>
  47. * &lt;/complexType>
  48. * &lt;/element>
  49. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  50. * &lt;element name="value" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}value"/>
  51. * &lt;element name="values" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}values"/>
  52. * &lt;/choice>
  53. * &lt;/sequence>
  54. * &lt;attGroup ref="{http://www.decision-deck.org/2019/XMCDA-2.2.3}defaultAttributes"/>
  55. * &lt;/restriction>
  56. * &lt;/complexContent>
  57. * &lt;/complexType>
  58. * </pre>
  59. *
  60. *
  61. */
  62. @XmlAccessorType(XmlAccessType.FIELD)
  63. @XmlType(name = "attributesSet", propOrder = {
  64. "description",
  65. "element",
  66. "valueOrValues"
  67. })
  68. public class AttributesSet {
  69. protected Description description;
  70. protected List<AttributesSet.Element> element;
  71. @XmlElements({
  72. @XmlElement(name = "value", type = Value.class),
  73. @XmlElement(name = "values", type = Values.class)
  74. })
  75. protected List<Object> valueOrValues;
  76. @XmlAttribute(name = "id")
  77. protected String id;
  78. @XmlAttribute(name = "name")
  79. protected String name;
  80. @XmlAttribute(name = "mcdaConcept")
  81. protected String mcdaConcept;
  82. /**
  83. * Gets the value of the description property.
  84. *
  85. * @return
  86. * possible object is
  87. * {@link Description }
  88. *
  89. */
  90. public Description getDescription() {
  91. return description;
  92. }
  93. /**
  94. * Sets the value of the description property.
  95. *
  96. * @param value
  97. * allowed object is
  98. * {@link Description }
  99. *
  100. */
  101. public void setDescription(Description value) {
  102. this.description = value;
  103. }
  104. /**
  105. * Gets the value of the element property.
  106. *
  107. * <p>
  108. * This accessor method returns a reference to the live list,
  109. * not a snapshot. Therefore any modification you make to the
  110. * returned list will be present inside the JAXB object.
  111. * This is why there is not a <CODE>set</CODE> method for the element property.
  112. *
  113. * <p>
  114. * For example, to add a new item, do as follows:
  115. * <pre>
  116. * getElement().add(newItem);
  117. * </pre>
  118. *
  119. *
  120. * <p>
  121. * Objects of the following type(s) are allowed in the list
  122. * {@link AttributesSet.Element }
  123. *
  124. *
  125. */
  126. public List<AttributesSet.Element> getElement() {
  127. if (element == null) {
  128. element = new ArrayList<AttributesSet.Element>();
  129. }
  130. return this.element;
  131. }
  132. /**
  133. * Gets the value of the valueOrValues property.
  134. *
  135. * <p>
  136. * This accessor method returns a reference to the live list,
  137. * not a snapshot. Therefore any modification you make to the
  138. * returned list will be present inside the JAXB object.
  139. * This is why there is not a <CODE>set</CODE> method for the valueOrValues property.
  140. *
  141. * <p>
  142. * For example, to add a new item, do as follows:
  143. * <pre>
  144. * getValueOrValues().add(newItem);
  145. * </pre>
  146. *
  147. *
  148. * <p>
  149. * Objects of the following type(s) are allowed in the list
  150. * {@link Value }
  151. * {@link Values }
  152. *
  153. *
  154. */
  155. public List<Object> getValueOrValues() {
  156. if (valueOrValues == null) {
  157. valueOrValues = new ArrayList<Object>();
  158. }
  159. return this.valueOrValues;
  160. }
  161. /**
  162. * Gets the value of the id property.
  163. *
  164. * @return
  165. * possible object is
  166. * {@link String }
  167. *
  168. */
  169. public String getId() {
  170. return id;
  171. }
  172. /**
  173. * Sets the value of the id property.
  174. *
  175. * @param value
  176. * allowed object is
  177. * {@link String }
  178. *
  179. */
  180. public void setId(String value) {
  181. this.id = value;
  182. }
  183. /**
  184. * Gets the value of the name property.
  185. *
  186. * @return
  187. * possible object is
  188. * {@link String }
  189. *
  190. */
  191. public String getName() {
  192. return name;
  193. }
  194. /**
  195. * Sets the value of the name property.
  196. *
  197. * @param value
  198. * allowed object is
  199. * {@link String }
  200. *
  201. */
  202. public void setName(String value) {
  203. this.name = value;
  204. }
  205. /**
  206. * Gets the value of the mcdaConcept property.
  207. *
  208. * @return
  209. * possible object is
  210. * {@link String }
  211. *
  212. */
  213. public String getMcdaConcept() {
  214. return mcdaConcept;
  215. }
  216. /**
  217. * Sets the value of the mcdaConcept property.
  218. *
  219. * @param value
  220. * allowed object is
  221. * {@link String }
  222. *
  223. */
  224. public void setMcdaConcept(String value) {
  225. this.mcdaConcept = value;
  226. }
  227. /**
  228. * <p>Java class for anonymous complex type.
  229. *
  230. * <p>The following schema fragment specifies the expected content contained within this class.
  231. *
  232. * <pre>
  233. * &lt;complexType>
  234. * &lt;complexContent>
  235. * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  236. * &lt;sequence>
  237. * &lt;element name="description" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}description" minOccurs="0"/>
  238. * &lt;element name="attributeID" type="{http://www.w3.org/2001/XMLSchema}string"/>
  239. * &lt;choice maxOccurs="unbounded" minOccurs="0">
  240. * &lt;element name="rank" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}value"/>
  241. * &lt;element name="value" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}value"/>
  242. * &lt;element name="values" type="{http://www.decision-deck.org/2019/XMCDA-2.2.3}values"/>
  243. * &lt;/choice>
  244. * &lt;/sequence>
  245. * &lt;/restriction>
  246. * &lt;/complexContent>
  247. * &lt;/complexType>
  248. * </pre>
  249. *
  250. *
  251. */
  252. @XmlAccessorType(XmlAccessType.FIELD)
  253. @XmlType(name = "", propOrder = {
  254. "description",
  255. "attributeID",
  256. "rankOrValueOrValues"
  257. })
  258. public static class Element {
  259. protected Description description;
  260. @XmlElement(required = true)
  261. protected String attributeID;
  262. @XmlElementRefs({
  263. @XmlElementRef(name = "values", type = JAXBElement.class, required = false),
  264. @XmlElementRef(name = "value", type = JAXBElement.class, required = false),
  265. @XmlElementRef(name = "rank", type = JAXBElement.class, required = false)
  266. })
  267. protected List<JAXBElement<?>> rankOrValueOrValues;
  268. /**
  269. * Gets the value of the description property.
  270. *
  271. * @return
  272. * possible object is
  273. * {@link Description }
  274. *
  275. */
  276. public Description getDescription() {
  277. return description;
  278. }
  279. /**
  280. * Sets the value of the description property.
  281. *
  282. * @param value
  283. * allowed object is
  284. * {@link Description }
  285. *
  286. */
  287. public void setDescription(Description value) {
  288. this.description = value;
  289. }
  290. /**
  291. * Gets the value of the attributeID property.
  292. *
  293. * @return
  294. * possible object is
  295. * {@link String }
  296. *
  297. */
  298. public String getAttributeID() {
  299. return attributeID;
  300. }
  301. /**
  302. * Sets the value of the attributeID property.
  303. *
  304. * @param value
  305. * allowed object is
  306. * {@link String }
  307. *
  308. */
  309. public void setAttributeID(String value) {
  310. this.attributeID = value;
  311. }
  312. /**
  313. * Gets the value of the rankOrValueOrValues property.
  314. *
  315. * <p>
  316. * This accessor method returns a reference to the live list,
  317. * not a snapshot. Therefore any modification you make to the
  318. * returned list will be present inside the JAXB object.
  319. * This is why there is not a <CODE>set</CODE> method for the rankOrValueOrValues property.
  320. *
  321. * <p>
  322. * For example, to add a new item, do as follows:
  323. * <pre>
  324. * getRankOrValueOrValues().add(newItem);
  325. * </pre>
  326. *
  327. *
  328. * <p>
  329. * Objects of the following type(s) are allowed in the list
  330. * {@link JAXBElement }{@code <}{@link Value }{@code >}
  331. * {@link JAXBElement }{@code <}{@link Values }{@code >}
  332. * {@link JAXBElement }{@code <}{@link Value }{@code >}
  333. *
  334. *
  335. */
  336. public List<JAXBElement<?>> getRankOrValueOrValues() {
  337. if (rankOrValueOrValues == null) {
  338. rankOrValueOrValues = new ArrayList<JAXBElement<?>>();
  339. }
  340. return this.rankOrValueOrValues;
  341. }
  342. }
  343. }