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