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-env-refType is used to define
026: * resource-env-type elements. It contains a declaration of a
027: * Deployment Component's reference to an administered object
028: * associated with a resource in the Deployment Component's
029: * environment. It consists of an optional description, the
030: * resource environment reference name, and an optional
031: * indication of the resource environment reference type
032: * expected by the Deployment Component code.
033: *
034: * It also includes optional elements to define injection of
035: * the named resource into fields or JavaBeans properties.
036: *
037: * The resource environment type must be supplied unless an
038: * injection target is specified, in which case the type
039: * of the target is used. If both are specified, the type
040: * must be assignment compatible with the type of the injection
041: * target.
042: *
043: * Example:
044: *
045: * <resource-env-ref>
046: * <resource-env-ref-name>jms/StockQueue
047: * </resource-env-ref-name>
048: * <resource-env-ref-type>javax.jms.Queue
049: * </resource-env-ref-type>
050: * </resource-env-ref>
051: *
052: *
053: *
054: *
055: * <p>Java class for resource-env-refType complex type.
056: *
057: * <p>The following schema fragment specifies the expected content contained within this class.
058: *
059: * <pre>
060: * <complexType name="resource-env-refType">
061: * <complexContent>
062: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
063: * <sequence>
064: * <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
065: * <element name="resource-env-ref-name" type="{http://java.sun.com/xml/ns/javaee}jndi-nameType"/>
066: * <element name="resource-env-ref-type" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" minOccurs="0"/>
067: * <group ref="{http://java.sun.com/xml/ns/javaee}resourceGroup"/>
068: * </sequence>
069: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
070: * </restriction>
071: * </complexContent>
072: * </complexType>
073: * </pre>
074: *
075: *
076: */
077: @XmlAccessorType(XmlAccessType.FIELD)
078: @XmlType(name="resource-env-refType",propOrder={"description","resourceEnvRefName","resourceEnvRefType","mappedName","injectionTarget"})
079: public class ResourceEnvRefType {
080:
081: protected List<DescriptionType> description;
082: @XmlElement(name="resource-env-ref-name",required=true)
083: protected JndiNameType resourceEnvRefName;
084: @XmlElement(name="resource-env-ref-type")
085: protected FullyQualifiedClassType resourceEnvRefType;
086: @XmlElement(name="mapped-name")
087: protected XsdStringType mappedName;
088: @XmlElement(name="injection-target")
089: protected List<InjectionTargetType> injectionTarget;
090: @XmlAttribute
091: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
092: @XmlID
093: protected java.lang.String id;
094:
095: /**
096: * Gets the value of the description property.
097: *
098: * <p>
099: * This accessor method returns a reference to the live list,
100: * not a snapshot. Therefore any modification you make to the
101: * returned list will be present inside the JAXB object.
102: * This is why there is not a <CODE>set</CODE> method for the description property.
103: *
104: * <p>
105: * For example, to add a new item, do as follows:
106: * <pre>
107: * getDescription().add(newItem);
108: * </pre>
109: *
110: *
111: * <p>
112: * Objects of the following type(s) are allowed in the list
113: * {@link DescriptionType }
114: *
115: *
116: */
117: public List<DescriptionType> getDescription() {
118: if (description == null) {
119: description = new ArrayList<DescriptionType>();
120: }
121: return this .description;
122: }
123:
124: /**
125: * Gets the value of the resourceEnvRefName property.
126: *
127: * @return
128: * possible object is
129: * {@link JndiNameType }
130: *
131: */
132: public JndiNameType getResourceEnvRefName() {
133: return resourceEnvRefName;
134: }
135:
136: /**
137: * Sets the value of the resourceEnvRefName property.
138: *
139: * @param value
140: * allowed object is
141: * {@link JndiNameType }
142: *
143: */
144: public void setResourceEnvRefName(JndiNameType value) {
145: this .resourceEnvRefName = value;
146: }
147:
148: /**
149: * Gets the value of the resourceEnvRefType property.
150: *
151: * @return
152: * possible object is
153: * {@link FullyQualifiedClassType }
154: *
155: */
156: public FullyQualifiedClassType getResourceEnvRefType() {
157: return resourceEnvRefType;
158: }
159:
160: /**
161: * Sets the value of the resourceEnvRefType property.
162: *
163: * @param value
164: * allowed object is
165: * {@link FullyQualifiedClassType }
166: *
167: */
168: public void setResourceEnvRefType(FullyQualifiedClassType value) {
169: this .resourceEnvRefType = value;
170: }
171:
172: /**
173: * Gets the value of the mappedName property.
174: *
175: * @return
176: * possible object is
177: * {@link XsdStringType }
178: *
179: */
180: public XsdStringType getMappedName() {
181: return mappedName;
182: }
183:
184: /**
185: * Sets the value of the mappedName property.
186: *
187: * @param value
188: * allowed object is
189: * {@link XsdStringType }
190: *
191: */
192: public void setMappedName(XsdStringType value) {
193: this .mappedName = value;
194: }
195:
196: /**
197: * Gets the value of the injectionTarget property.
198: *
199: * <p>
200: * This accessor method returns a reference to the live list,
201: * not a snapshot. Therefore any modification you make to the
202: * returned list will be present inside the JAXB object.
203: * This is why there is not a <CODE>set</CODE> method for the injectionTarget property.
204: *
205: * <p>
206: * For example, to add a new item, do as follows:
207: * <pre>
208: * getInjectionTarget().add(newItem);
209: * </pre>
210: *
211: *
212: * <p>
213: * Objects of the following type(s) are allowed in the list
214: * {@link InjectionTargetType }
215: *
216: *
217: */
218: public List<InjectionTargetType> getInjectionTarget() {
219: if (injectionTarget == null) {
220: injectionTarget = new ArrayList<InjectionTargetType>();
221: }
222: return this .injectionTarget;
223: }
224:
225: /**
226: * Gets the value of the id property.
227: *
228: * @return
229: * possible object is
230: * {@link java.lang.String }
231: *
232: */
233: public java.lang.String getId() {
234: return id;
235: }
236:
237: /**
238: * Sets the value of the id property.
239: *
240: * @param value
241: * allowed object is
242: * {@link java.lang.String }
243: *
244: */
245: public void setId(java.lang.String value) {
246: this.id = value;
247: }
248:
249: }
|