001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.31 at 10:25:50 AM GMT+08:00
006: //
007:
008: package org.apache.cxf.jaxws.javaee;
009:
010: import java.util.ArrayList;
011: import java.util.List;
012: import javax.xml.bind.annotation.XmlAccessType;
013: import javax.xml.bind.annotation.XmlAccessorType;
014: import javax.xml.bind.annotation.XmlAttribute;
015: import javax.xml.bind.annotation.XmlElement;
016: import javax.xml.bind.annotation.XmlID;
017: import javax.xml.bind.annotation.XmlType;
018: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
019: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
020:
021: /**
022: *
023: *
024: *
025: * The resource-refType contains a declaration of a
026: * Deployment Component's reference to an external resource. It
027: * consists of an optional description, the resource manager
028: * connection factory reference name, an optional indication of
029: * the resource manager connection factory type expected by the
030: * Deployment Component code, an optional type of authentication
031: * (Application or Container), and an optional specification of
032: * the shareability of connections obtained from the resource
033: * (Shareable or Unshareable).
034: *
035: * It also includes optional elements to define injection of
036: * the named resource into fields or JavaBeans properties.
037: *
038: * The connection factory type must be supplied unless an
039: * injection target is specified, in which case the type
040: * of the target is used. If both are specified, the type
041: * must be assignment compatible with the type of the injection
042: * target.
043: *
044: * Example:
045: *
046: * <resource-ref>
047: * <res-ref-name>jdbc/EmployeeAppDB</res-ref-name>
048: * <res-type>javax.sql.DataSource</res-type>
049: * <res-auth>Container</res-auth>
050: * <res-sharing-scope>Shareable</res-sharing-scope>
051: * </resource-ref>
052: *
053: *
054: *
055: *
056: * <p>Java class for resource-refType complex type.
057: *
058: * <p>The following schema fragment specifies the expected content contained within this class.
059: *
060: * <pre>
061: * <complexType name="resource-refType">
062: * <complexContent>
063: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
064: * <sequence>
065: * <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
066: * <element name="res-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
067: * <element name="res-type" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
068: * <element name="res-auth" type="{http://java.sun.com/xml/ns/javaee}res-authType" minOccurs="0"/>
069: * <element name="res-sharing-scope" type="{http://java.sun.com/xml/ns/javaee}res-sharing-scopeType" minOccurs="0"/>
070: * <group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
071: * </sequence>
072: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
073: * </restriction>
074: * </complexContent>
075: * </complexType>
076: * </pre>
077: *
078: *
079: */
080: @XmlAccessorType(XmlAccessType.FIELD)
081: @XmlType(name="resource-refType",propOrder={"description","resRefName","resType","resAuth","resSharingScope","mappedName","injectionTarget"})
082: public class ResourceRefType {
083:
084: protected List<DescriptionType> description;
085: @XmlElement(name="res-ref-name",required=true)
086: protected JndiNameType resRefName;
087: @XmlElement(name="res-type")
088: protected FullyQualifiedClassType resType;
089: @XmlElement(name="res-auth")
090: protected ResAuthType resAuth;
091: @XmlElement(name="res-sharing-scope")
092: protected ResSharingScopeType resSharingScope;
093: @XmlElement(name="mapped-name")
094: protected XsdStringType mappedName;
095: @XmlElement(name="injection-target")
096: protected List<InjectionTargetType> injectionTarget;
097: @XmlAttribute
098: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
099: @XmlID
100: protected java.lang.String id;
101:
102: /**
103: * Gets the value of the description property.
104: *
105: * <p>
106: * This accessor method returns a reference to the live list,
107: * not a snapshot. Therefore any modification you make to the
108: * returned list will be present inside the JAXB object.
109: * This is why there is not a <CODE>set</CODE> method for the description property.
110: *
111: * <p>
112: * For example, to add a new item, do as follows:
113: * <pre>
114: * getDescription().add(newItem);
115: * </pre>
116: *
117: *
118: * <p>
119: * Objects of the following type(s) are allowed in the list
120: * {@link DescriptionType }
121: *
122: *
123: */
124: public List<DescriptionType> getDescription() {
125: if (description == null) {
126: description = new ArrayList<DescriptionType>();
127: }
128: return this .description;
129: }
130:
131: /**
132: * Gets the value of the resRefName property.
133: *
134: * @return
135: * possible object is
136: * {@link JndiNameType }
137: *
138: */
139: public JndiNameType getResRefName() {
140: return resRefName;
141: }
142:
143: /**
144: * Sets the value of the resRefName property.
145: *
146: * @param value
147: * allowed object is
148: * {@link JndiNameType }
149: *
150: */
151: public void setResRefName(JndiNameType value) {
152: this .resRefName = value;
153: }
154:
155: /**
156: * Gets the value of the resType property.
157: *
158: * @return
159: * possible object is
160: * {@link FullyQualifiedClassType }
161: *
162: */
163: public FullyQualifiedClassType getResType() {
164: return resType;
165: }
166:
167: /**
168: * Sets the value of the resType property.
169: *
170: * @param value
171: * allowed object is
172: * {@link FullyQualifiedClassType }
173: *
174: */
175: public void setResType(FullyQualifiedClassType value) {
176: this .resType = value;
177: }
178:
179: /**
180: * Gets the value of the resAuth property.
181: *
182: * @return
183: * possible object is
184: * {@link ResAuthType }
185: *
186: */
187: public ResAuthType getResAuth() {
188: return resAuth;
189: }
190:
191: /**
192: * Sets the value of the resAuth property.
193: *
194: * @param value
195: * allowed object is
196: * {@link ResAuthType }
197: *
198: */
199: public void setResAuth(ResAuthType value) {
200: this .resAuth = value;
201: }
202:
203: /**
204: * Gets the value of the resSharingScope property.
205: *
206: * @return
207: * possible object is
208: * {@link ResSharingScopeType }
209: *
210: */
211: public ResSharingScopeType getResSharingScope() {
212: return resSharingScope;
213: }
214:
215: /**
216: * Sets the value of the resSharingScope property.
217: *
218: * @param value
219: * allowed object is
220: * {@link ResSharingScopeType }
221: *
222: */
223: public void setResSharingScope(ResSharingScopeType value) {
224: this .resSharingScope = value;
225: }
226:
227: /**
228: * Gets the value of the mappedName property.
229: *
230: * @return
231: * possible object is
232: * {@link XsdStringType }
233: *
234: */
235: public XsdStringType getMappedName() {
236: return mappedName;
237: }
238:
239: /**
240: * Sets the value of the mappedName property.
241: *
242: * @param value
243: * allowed object is
244: * {@link XsdStringType }
245: *
246: */
247: public void setMappedName(XsdStringType value) {
248: this .mappedName = value;
249: }
250:
251: /**
252: * Gets the value of the injectionTarget property.
253: *
254: * <p>
255: * This accessor method returns a reference to the live list,
256: * not a snapshot. Therefore any modification you make to the
257: * returned list will be present inside the JAXB object.
258: * This is why there is not a <CODE>set</CODE> method for the injectionTarget property.
259: *
260: * <p>
261: * For example, to add a new item, do as follows:
262: * <pre>
263: * getInjectionTarget().add(newItem);
264: * </pre>
265: *
266: *
267: * <p>
268: * Objects of the following type(s) are allowed in the list
269: * {@link InjectionTargetType }
270: *
271: *
272: */
273: public List<InjectionTargetType> getInjectionTarget() {
274: if (injectionTarget == null) {
275: injectionTarget = new ArrayList<InjectionTargetType>();
276: }
277: return this .injectionTarget;
278: }
279:
280: /**
281: * Gets the value of the id property.
282: *
283: * @return
284: * possible object is
285: * {@link java.lang.String }
286: *
287: */
288: public java.lang.String getId() {
289: return id;
290: }
291:
292: /**
293: * Sets the value of the id property.
294: *
295: * @param value
296: * allowed object is
297: * {@link java.lang.String }
298: *
299: */
300: public void setId(java.lang.String value) {
301: this.id = value;
302: }
303:
304: }
|