1 //
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
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: 2008.08.27 at 04:18:43 PM CEST
6 //
7
8
9 package org.simject.jaxb;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlRootElement;
18 import javax.xml.bind.annotation.XmlType;
19 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
20 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
21
22
23 /**
24 * <p>Java class for anonymous complex type.
25 *
26 * <p>The following schema fragment specifies the expected content contained within this class.
27 *
28 * <pre>
29 * <complexType>
30 * <complexContent>
31 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
32 * <sequence>
33 * <element name="resource" type="{http://simject.org/xml/ns/resources}resource" maxOccurs="unbounded"/>
34 * </sequence>
35 * <attribute name="version" use="required" type="{http://simject.org/xml/ns/resources}version" fixed="1.0" />
36 * </restriction>
37 * </complexContent>
38 * </complexType>
39 * </pre>
40 *
41 *
42 */
43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "", propOrder = {
45 "resource"
46 })
47 @XmlRootElement(name = "resources")
48 public class Resources {
49
50 @XmlElement(required = true)
51 protected List<Resource> resource;
52 @XmlAttribute(required = true)
53 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
54 protected String version;
55
56 /**
57 * Gets the value of the resource property.
58 *
59 * <p>
60 * This accessor method returns a reference to the live list,
61 * not a snapshot. Therefore any modification you make to the
62 * returned list will be present inside the JAXB object.
63 * This is why there is not a <CODE>set</CODE> method for the resource property.
64 *
65 * <p>
66 * For example, to add a new item, do as follows:
67 * <pre>
68 * getResource().add(newItem);
69 * </pre>
70 *
71 *
72 * <p>
73 * Objects of the following type(s) are allowed in the list
74 * {@link Resource }
75 *
76 *
77 */
78 public List<Resource> getResource() {
79 if (resource == null) {
80 resource = new ArrayList<Resource>();
81 }
82 return this.resource;
83 }
84
85 /**
86 * Gets the value of the version property.
87 *
88 * @return
89 * possible object is
90 * {@link String }
91 *
92 */
93 public String getVersion() {
94 if (version == null) {
95 return "1.0";
96 } else {
97 return version;
98 }
99 }
100
101 /**
102 * Sets the value of the version property.
103 *
104 * @param value
105 * allowed object is
106 * {@link String }
107 *
108 */
109 public void setVersion(String value) {
110 this.version = value;
111 }
112
113 }