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="mail-resource")
068: public class MailResource {
069:
070: @XmlAttribute(name="jndi-name",required=true)
071: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
072: protected String jndiName;
073: @XmlAttribute(name="store-protocol")
074: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
075: protected String storeProtocol;
076: @XmlAttribute(name="store-protocol-class")
077: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
078: protected String storeProtocolClass;
079: @XmlAttribute(name="transport-protocol")
080: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
081: protected String transportProtocol;
082: @XmlAttribute(name="transport-protocol-class")
083: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
084: protected String transportProtocolClass;
085: @XmlAttribute(required=true)
086: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
087: protected String host;
088: @XmlAttribute(required=true)
089: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
090: protected String user;
091: @XmlAttribute(required=true)
092: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
093: protected String from;
094: @XmlAttribute
095: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
096: protected String debug;
097: @XmlAttribute(name="object-type")
098: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
099: protected String objectType;
100: @XmlAttribute
101: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
102: protected String enabled;
103: protected String description;
104: protected List<Property> property;
105:
106: /**
107: * Gets the value of the jndiName property.
108: *
109: * @return
110: * possible object is
111: * {@link String }
112: *
113: */
114: public String getJndiName() {
115: return jndiName;
116: }
117:
118: /**
119: * Sets the value of the jndiName property.
120: *
121: * @param value
122: * allowed object is
123: * {@link String }
124: *
125: */
126: public void setJndiName(String value) {
127: this .jndiName = value;
128: }
129:
130: /**
131: * Gets the value of the storeProtocol property.
132: *
133: * @return
134: * possible object is
135: * {@link String }
136: *
137: */
138: public String getStoreProtocol() {
139: if (storeProtocol == null) {
140: return "imap";
141: } else {
142: return storeProtocol;
143: }
144: }
145:
146: /**
147: * Sets the value of the storeProtocol property.
148: *
149: * @param value
150: * allowed object is
151: * {@link String }
152: *
153: */
154: public void setStoreProtocol(String value) {
155: this .storeProtocol = value;
156: }
157:
158: /**
159: * Gets the value of the storeProtocolClass property.
160: *
161: * @return
162: * possible object is
163: * {@link String }
164: *
165: */
166: public String getStoreProtocolClass() {
167: if (storeProtocolClass == null) {
168: return "com.sun.mail.imap.IMAPStore";
169: } else {
170: return storeProtocolClass;
171: }
172: }
173:
174: /**
175: * Sets the value of the storeProtocolClass property.
176: *
177: * @param value
178: * allowed object is
179: * {@link String }
180: *
181: */
182: public void setStoreProtocolClass(String value) {
183: this .storeProtocolClass = value;
184: }
185:
186: /**
187: * Gets the value of the transportProtocol property.
188: *
189: * @return
190: * possible object is
191: * {@link String }
192: *
193: */
194: public String getTransportProtocol() {
195: if (transportProtocol == null) {
196: return "smtp";
197: } else {
198: return transportProtocol;
199: }
200: }
201:
202: /**
203: * Sets the value of the transportProtocol property.
204: *
205: * @param value
206: * allowed object is
207: * {@link String }
208: *
209: */
210: public void setTransportProtocol(String value) {
211: this .transportProtocol = value;
212: }
213:
214: /**
215: * Gets the value of the transportProtocolClass property.
216: *
217: * @return
218: * possible object is
219: * {@link String }
220: *
221: */
222: public String getTransportProtocolClass() {
223: if (transportProtocolClass == null) {
224: return "com.sun.mail.smtp.SMTPTransport";
225: } else {
226: return transportProtocolClass;
227: }
228: }
229:
230: /**
231: * Sets the value of the transportProtocolClass property.
232: *
233: * @param value
234: * allowed object is
235: * {@link String }
236: *
237: */
238: public void setTransportProtocolClass(String value) {
239: this .transportProtocolClass = value;
240: }
241:
242: /**
243: * Gets the value of the host property.
244: *
245: * @return
246: * possible object is
247: * {@link String }
248: *
249: */
250: public String getHost() {
251: return host;
252: }
253:
254: /**
255: * Sets the value of the host property.
256: *
257: * @param value
258: * allowed object is
259: * {@link String }
260: *
261: */
262: public void setHost(String value) {
263: this .host = value;
264: }
265:
266: /**
267: * Gets the value of the user property.
268: *
269: * @return
270: * possible object is
271: * {@link String }
272: *
273: */
274: public String getUser() {
275: return user;
276: }
277:
278: /**
279: * Sets the value of the user property.
280: *
281: * @param value
282: * allowed object is
283: * {@link String }
284: *
285: */
286: public void setUser(String value) {
287: this .user = value;
288: }
289:
290: /**
291: * Gets the value of the from property.
292: *
293: * @return
294: * possible object is
295: * {@link String }
296: *
297: */
298: public String getFrom() {
299: return from;
300: }
301:
302: /**
303: * Sets the value of the from property.
304: *
305: * @param value
306: * allowed object is
307: * {@link String }
308: *
309: */
310: public void setFrom(String value) {
311: this .from = value;
312: }
313:
314: /**
315: * Gets the value of the debug property.
316: *
317: * @return
318: * possible object is
319: * {@link String }
320: *
321: */
322: public String getDebug() {
323: if (debug == null) {
324: return "false";
325: } else {
326: return debug;
327: }
328: }
329:
330: /**
331: * Sets the value of the debug property.
332: *
333: * @param value
334: * allowed object is
335: * {@link String }
336: *
337: */
338: public void setDebug(String value) {
339: this .debug = value;
340: }
341:
342: /**
343: * Gets the value of the objectType property.
344: *
345: * @return
346: * possible object is
347: * {@link String }
348: *
349: */
350: public String getObjectType() {
351: if (objectType == null) {
352: return "user";
353: } else {
354: return objectType;
355: }
356: }
357:
358: /**
359: * Sets the value of the objectType property.
360: *
361: * @param value
362: * allowed object is
363: * {@link String }
364: *
365: */
366: public void setObjectType(String value) {
367: this .objectType = value;
368: }
369:
370: /**
371: * Gets the value of the enabled property.
372: *
373: * @return
374: * possible object is
375: * {@link String }
376: *
377: */
378: public String getEnabled() {
379: if (enabled == null) {
380: return "true";
381: } else {
382: return enabled;
383: }
384: }
385:
386: /**
387: * Sets the value of the enabled property.
388: *
389: * @param value
390: * allowed object is
391: * {@link String }
392: *
393: */
394: public void setEnabled(String value) {
395: this .enabled = value;
396: }
397:
398: /**
399: * Gets the value of the description property.
400: *
401: * @return
402: * possible object is
403: * {@link String }
404: *
405: */
406: public String getDescription() {
407: return description;
408: }
409:
410: /**
411: * Sets the value of the description property.
412: *
413: * @param value
414: * allowed object is
415: * {@link String }
416: *
417: */
418: public void setDescription(String value) {
419: this .description = value;
420: }
421:
422: /**
423: * Gets the value of the property property.
424: *
425: * <p>
426: * This accessor method returns a reference to the live list,
427: * not a snapshot. Therefore any modification you make to the
428: * returned list will be present inside the JAXB object.
429: * This is why there is not a <CODE>set</CODE> method for the property property.
430: *
431: * <p>
432: * For example, to add a new item, do as follows:
433: * <pre>
434: * getProperty().add(newItem);
435: * </pre>
436: *
437: *
438: * <p>
439: * Objects of the following type(s) are allowed in the list
440: * {@link Property }
441: *
442: *
443: */
444: public List<Property> getProperty() {
445: if (property == null) {
446: property = new ArrayList<Property>();
447: }
448: return this.property;
449: }
450:
451: }
|