001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: //
043: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
044: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
045: // Any modifications to this file will be lost upon recompilation of the source schema.
046: // Generated on: 2006.12.09 at 06:26:10 PM PST
047: //
048:
049: package org.netbeans.modules.compapp.javaee.sunresources.generated.sunresources13;
050:
051: import java.util.ArrayList;
052: import java.util.List;
053: import javax.xml.bind.annotation.XmlAccessType;
054: import javax.xml.bind.annotation.XmlAccessorType;
055: import javax.xml.bind.annotation.XmlAttribute;
056: import javax.xml.bind.annotation.XmlRootElement;
057: import javax.xml.bind.annotation.XmlType;
058: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
059: import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
060: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
061:
062: /**
063: *
064: */
065: @XmlAccessorType(XmlAccessType.FIELD)
066: @XmlType(name="",propOrder={"description","property"})
067: @XmlRootElement(name="external-jndi-resource")
068: public class ExternalJndiResource {
069:
070: @XmlAttribute(name="jndi-name",required=true)
071: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
072: protected String jndiName;
073: @XmlAttribute(name="jndi-lookup-name",required=true)
074: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
075: protected String jndiLookupName;
076: @XmlAttribute(name="res-type",required=true)
077: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
078: protected String resType;
079: @XmlAttribute(name="factory-class",required=true)
080: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
081: protected String factoryClass;
082: @XmlAttribute(name="object-type")
083: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
084: protected String objectType;
085: @XmlAttribute
086: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
087: protected String enabled;
088: protected String description;
089: protected List<Property> property;
090:
091: /**
092: * Gets the value of the jndiName property.
093: *
094: * @return
095: * possible object is
096: * {@link String }
097: *
098: */
099: public String getJndiName() {
100: return jndiName;
101: }
102:
103: /**
104: * Sets the value of the jndiName property.
105: *
106: * @param value
107: * allowed object is
108: * {@link String }
109: *
110: */
111: public void setJndiName(String value) {
112: this .jndiName = value;
113: }
114:
115: /**
116: * Gets the value of the jndiLookupName property.
117: *
118: * @return
119: * possible object is
120: * {@link String }
121: *
122: */
123: public String getJndiLookupName() {
124: return jndiLookupName;
125: }
126:
127: /**
128: * Sets the value of the jndiLookupName property.
129: *
130: * @param value
131: * allowed object is
132: * {@link String }
133: *
134: */
135: public void setJndiLookupName(String value) {
136: this .jndiLookupName = value;
137: }
138:
139: /**
140: * Gets the value of the resType property.
141: *
142: * @return
143: * possible object is
144: * {@link String }
145: *
146: */
147: public String getResType() {
148: return resType;
149: }
150:
151: /**
152: * Sets the value of the resType property.
153: *
154: * @param value
155: * allowed object is
156: * {@link String }
157: *
158: */
159: public void setResType(String value) {
160: this .resType = value;
161: }
162:
163: /**
164: * Gets the value of the factoryClass property.
165: *
166: * @return
167: * possible object is
168: * {@link String }
169: *
170: */
171: public String getFactoryClass() {
172: return factoryClass;
173: }
174:
175: /**
176: * Sets the value of the factoryClass property.
177: *
178: * @param value
179: * allowed object is
180: * {@link String }
181: *
182: */
183: public void setFactoryClass(String value) {
184: this .factoryClass = value;
185: }
186:
187: /**
188: * Gets the value of the objectType property.
189: *
190: * @return
191: * possible object is
192: * {@link String }
193: *
194: */
195: public String getObjectType() {
196: if (objectType == null) {
197: return "user";
198: } else {
199: return objectType;
200: }
201: }
202:
203: /**
204: * Sets the value of the objectType property.
205: *
206: * @param value
207: * allowed object is
208: * {@link String }
209: *
210: */
211: public void setObjectType(String value) {
212: this .objectType = value;
213: }
214:
215: /**
216: * Gets the value of the enabled property.
217: *
218: * @return
219: * possible object is
220: * {@link String }
221: *
222: */
223: public String getEnabled() {
224: if (enabled == null) {
225: return "true";
226: } else {
227: return enabled;
228: }
229: }
230:
231: /**
232: * Sets the value of the enabled property.
233: *
234: * @param value
235: * allowed object is
236: * {@link String }
237: *
238: */
239: public void setEnabled(String value) {
240: this .enabled = value;
241: }
242:
243: /**
244: * Gets the value of the description property.
245: *
246: * @return
247: * possible object is
248: * {@link String }
249: *
250: */
251: public String getDescription() {
252: return description;
253: }
254:
255: /**
256: * Sets the value of the description property.
257: *
258: * @param value
259: * allowed object is
260: * {@link String }
261: *
262: */
263: public void setDescription(String value) {
264: this .description = value;
265: }
266:
267: /**
268: * Gets the value of the property property.
269: *
270: * <p>
271: * This accessor method returns a reference to the live list,
272: * not a snapshot. Therefore any modification you make to the
273: * returned list will be present inside the JAXB object.
274: * This is why there is not a <CODE>set</CODE> method for the property property.
275: *
276: * <p>
277: * For example, to add a new item, do as follows:
278: * <pre>
279: * getProperty().add(newItem);
280: * </pre>
281: *
282: *
283: * <p>
284: * Objects of the following type(s) are allowed in the list
285: * {@link Property }
286: *
287: *
288: */
289: public List<Property> getProperty() {
290: if (property == null) {
291: property = new ArrayList<Property>();
292: }
293: return this.property;
294: }
295:
296: }
|