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="admin-object-resource")
068: public class AdminObjectResource {
069:
070: @XmlAttribute(name="jndi-name",required=true)
071: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
072: protected String jndiName;
073: @XmlAttribute(name="res-type",required=true)
074: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
075: protected String resType;
076: @XmlAttribute(name="res-adapter",required=true)
077: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
078: protected String resAdapter;
079: @XmlAttribute(name="object-type")
080: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
081: protected String objectType;
082: @XmlAttribute
083: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
084: protected String enabled;
085: protected String description;
086: protected List<Property> property;
087:
088: /**
089: * Gets the value of the jndiName property.
090: *
091: * @return
092: * possible object is
093: * {@link String }
094: *
095: */
096: public String getJndiName() {
097: return jndiName;
098: }
099:
100: /**
101: * Sets the value of the jndiName property.
102: *
103: * @param value
104: * allowed object is
105: * {@link String }
106: *
107: */
108: public void setJndiName(String value) {
109: this .jndiName = value;
110: }
111:
112: /**
113: * Gets the value of the resType property.
114: *
115: * @return
116: * possible object is
117: * {@link String }
118: *
119: */
120: public String getResType() {
121: return resType;
122: }
123:
124: /**
125: * Sets the value of the resType property.
126: *
127: * @param value
128: * allowed object is
129: * {@link String }
130: *
131: */
132: public void setResType(String value) {
133: this .resType = value;
134: }
135:
136: /**
137: * Gets the value of the resAdapter property.
138: *
139: * @return
140: * possible object is
141: * {@link String }
142: *
143: */
144: public String getResAdapter() {
145: return resAdapter;
146: }
147:
148: /**
149: * Sets the value of the resAdapter property.
150: *
151: * @param value
152: * allowed object is
153: * {@link String }
154: *
155: */
156: public void setResAdapter(String value) {
157: this .resAdapter = value;
158: }
159:
160: /**
161: * Gets the value of the objectType property.
162: *
163: * @return
164: * possible object is
165: * {@link String }
166: *
167: */
168: public String getObjectType() {
169: if (objectType == null) {
170: return "user";
171: } else {
172: return objectType;
173: }
174: }
175:
176: /**
177: * Sets the value of the objectType property.
178: *
179: * @param value
180: * allowed object is
181: * {@link String }
182: *
183: */
184: public void setObjectType(String value) {
185: this .objectType = value;
186: }
187:
188: /**
189: * Gets the value of the enabled property.
190: *
191: * @return
192: * possible object is
193: * {@link String }
194: *
195: */
196: public String getEnabled() {
197: if (enabled == null) {
198: return "true";
199: } else {
200: return enabled;
201: }
202: }
203:
204: /**
205: * Sets the value of the enabled property.
206: *
207: * @param value
208: * allowed object is
209: * {@link String }
210: *
211: */
212: public void setEnabled(String value) {
213: this .enabled = value;
214: }
215:
216: /**
217: * Gets the value of the description property.
218: *
219: * @return
220: * possible object is
221: * {@link String }
222: *
223: */
224: public String getDescription() {
225: return description;
226: }
227:
228: /**
229: * Sets the value of the description property.
230: *
231: * @param value
232: * allowed object is
233: * {@link String }
234: *
235: */
236: public void setDescription(String value) {
237: this .description = value;
238: }
239:
240: /**
241: * Gets the value of the property property.
242: *
243: * <p>
244: * This accessor method returns a reference to the live list,
245: * not a snapshot. Therefore any modification you make to the
246: * returned list will be present inside the JAXB object.
247: * This is why there is not a <CODE>set</CODE> method for the property property.
248: *
249: * <p>
250: * For example, to add a new item, do as follows:
251: * <pre>
252: * getProperty().add(newItem);
253: * </pre>
254: *
255: *
256: * <p>
257: * Objects of the following type(s) are allowed in the list
258: * {@link Property }
259: *
260: *
261: */
262: public List<Property> getProperty() {
263: if (property == null) {
264: property = new ArrayList<Property>();
265: }
266: return this.property;
267: }
268:
269: }
|