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.XmlType;
17
18
19 /**
20 * <p>Java class for resource complex type.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * <complexType name="resource">
26 * <complexContent>
27 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * <sequence>
29 * <element name="property" type="{http://simject.org/xml/ns/resources}property" maxOccurs="unbounded" minOccurs="0"/>
30 * </sequence>
31 * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
32 * <attribute name="target" type="{http://www.w3.org/2001/XMLSchema}string" />
33 * <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * </restriction>
35 * </complexContent>
36 * </complexType>
37 * </pre>
38 *
39 *
40 */
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "resource", propOrder = {
43 "property"
44 })
45 public class Resource {
46
47 protected List<Property> property;
48 @XmlAttribute
49 protected String name;
50 @XmlAttribute
51 protected String target;
52 @XmlAttribute(required = true)
53 protected String type;
54
55 /**
56 * Gets the value of the property property.
57 *
58 * <p>
59 * This accessor method returns a reference to the live list,
60 * not a snapshot. Therefore any modification you make to the
61 * returned list will be present inside the JAXB object.
62 * This is why there is not a <CODE>set</CODE> method for the property property.
63 *
64 * <p>
65 * For example, to add a new item, do as follows:
66 * <pre>
67 * getProperty().add(newItem);
68 * </pre>
69 *
70 *
71 * <p>
72 * Objects of the following type(s) are allowed in the list
73 * {@link Property }
74 *
75 *
76 */
77 public List<Property> getProperty() {
78 if (property == null) {
79 property = new ArrayList<Property>();
80 }
81 return this.property;
82 }
83
84 /**
85 * Gets the value of the name property.
86 *
87 * @return
88 * possible object is
89 * {@link String }
90 *
91 */
92 public String getName() {
93 return name;
94 }
95
96 /**
97 * Sets the value of the name property.
98 *
99 * @param value
100 * allowed object is
101 * {@link String }
102 *
103 */
104 public void setName(String value) {
105 this.name = value;
106 }
107
108 /**
109 * Gets the value of the target property.
110 *
111 * @return
112 * possible object is
113 * {@link String }
114 *
115 */
116 public String getTarget() {
117 return target;
118 }
119
120 /**
121 * Sets the value of the target property.
122 *
123 * @param value
124 * allowed object is
125 * {@link String }
126 *
127 */
128 public void setTarget(String value) {
129 this.target = value;
130 }
131
132 /**
133 * Gets the value of the type property.
134 *
135 * @return
136 * possible object is
137 * {@link String }
138 *
139 */
140 public String getType() {
141 return type;
142 }
143
144 /**
145 * Sets the value of the type property.
146 *
147 * @param value
148 * allowed object is
149 * {@link String }
150 *
151 */
152 public void setType(String value) {
153 this.type = value;
154 }
155
156 }