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:25:52 PM PST
047: //
048:
049: package org.netbeans.modules.compapp.javaee.sunresources.generated.ejb21;
050:
051: import java.math.BigDecimal;
052: import java.util.ArrayList;
053: import java.util.List;
054: import javax.xml.bind.annotation.XmlAccessType;
055: import javax.xml.bind.annotation.XmlAccessorType;
056: import javax.xml.bind.annotation.XmlAttribute;
057: import javax.xml.bind.annotation.XmlElement;
058: import javax.xml.bind.annotation.XmlID;
059: import javax.xml.bind.annotation.XmlType;
060: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
061: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
062:
063: /**
064: *
065: *
066: * The ejb-jarType defines the root element of the EJB
067: * deployment descriptor. It contains
068: *
069: * - an optional description of the ejb-jar file
070: * - an optional display name
071: * - an optional icon that contains a small and a large
072: * icon file name
073: * - mandatory structural information about all included
074: * enterprise beans
075: * - a descriptor for container managed relationships,
076: * if any
077: * - an optional application-assembly descriptor
078: * - an optional name of an ejb-client-jar file for the
079: * ejb-jar.
080: *
081: *
082: *
083: * <p>Java class for ejb-jarType complex type.
084: *
085: * <p>The following schema fragment specifies the expected content contained within this class.
086: *
087: * <pre>
088: * <complexType name="ejb-jarType">
089: * <complexContent>
090: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
091: * <sequence>
092: * <group ref="{http://java.sun.com/xml/ns/j2ee}descriptionGroup"/>
093: * <element name="enterprise-beans" type="{http://java.sun.com/xml/ns/j2ee}enterprise-beansType"/>
094: * <element name="relationships" type="{http://java.sun.com/xml/ns/j2ee}relationshipsType" minOccurs="0"/>
095: * <element name="assembly-descriptor" type="{http://java.sun.com/xml/ns/j2ee}assembly-descriptorType" minOccurs="0"/>
096: * <element name="ejb-client-jar" type="{http://java.sun.com/xml/ns/j2ee}pathType" minOccurs="0"/>
097: * </sequence>
098: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
099: * <attribute name="version" use="required" type="{http://java.sun.com/xml/ns/j2ee}dewey-versionType" fixed="2.1" />
100: * </restriction>
101: * </complexContent>
102: * </complexType>
103: * </pre>
104: *
105: *
106: */
107: @XmlAccessorType(XmlAccessType.FIELD)
108: @XmlType(name="ejb-jarType",propOrder={"description","displayName","icon","enterpriseBeans","relationships","assemblyDescriptor","ejbClientJar"})
109: public class EjbJarType {
110:
111: protected List<DescriptionType> description;
112: @XmlElement(name="display-name")
113: protected List<DisplayNameType> displayName;
114: protected List<IconType> icon;
115: @XmlElement(name="enterprise-beans",required=true)
116: protected EnterpriseBeansType enterpriseBeans;
117: protected RelationshipsType relationships;
118: @XmlElement(name="assembly-descriptor")
119: protected AssemblyDescriptorType assemblyDescriptor;
120: @XmlElement(name="ejb-client-jar")
121: protected PathType ejbClientJar;
122: @XmlAttribute
123: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
124: @XmlID
125: protected java.lang.String id;
126: @XmlAttribute(required=true)
127: protected BigDecimal version;
128:
129: /**
130: * Gets the value of the description property.
131: *
132: * <p>
133: * This accessor method returns a reference to the live list,
134: * not a snapshot. Therefore any modification you make to the
135: * returned list will be present inside the JAXB object.
136: * This is why there is not a <CODE>set</CODE> method for the description property.
137: *
138: * <p>
139: * For example, to add a new item, do as follows:
140: * <pre>
141: * getDescription().add(newItem);
142: * </pre>
143: *
144: *
145: * <p>
146: * Objects of the following type(s) are allowed in the list
147: * {@link DescriptionType }
148: *
149: *
150: */
151: public List<DescriptionType> getDescription() {
152: if (description == null) {
153: description = new ArrayList<DescriptionType>();
154: }
155: return this .description;
156: }
157:
158: /**
159: * Gets the value of the displayName property.
160: *
161: * <p>
162: * This accessor method returns a reference to the live list,
163: * not a snapshot. Therefore any modification you make to the
164: * returned list will be present inside the JAXB object.
165: * This is why there is not a <CODE>set</CODE> method for the displayName property.
166: *
167: * <p>
168: * For example, to add a new item, do as follows:
169: * <pre>
170: * getDisplayName().add(newItem);
171: * </pre>
172: *
173: *
174: * <p>
175: * Objects of the following type(s) are allowed in the list
176: * {@link DisplayNameType }
177: *
178: *
179: */
180: public List<DisplayNameType> getDisplayName() {
181: if (displayName == null) {
182: displayName = new ArrayList<DisplayNameType>();
183: }
184: return this .displayName;
185: }
186:
187: /**
188: * Gets the value of the icon property.
189: *
190: * <p>
191: * This accessor method returns a reference to the live list,
192: * not a snapshot. Therefore any modification you make to the
193: * returned list will be present inside the JAXB object.
194: * This is why there is not a <CODE>set</CODE> method for the icon property.
195: *
196: * <p>
197: * For example, to add a new item, do as follows:
198: * <pre>
199: * getIcon().add(newItem);
200: * </pre>
201: *
202: *
203: * <p>
204: * Objects of the following type(s) are allowed in the list
205: * {@link IconType }
206: *
207: *
208: */
209: public List<IconType> getIcon() {
210: if (icon == null) {
211: icon = new ArrayList<IconType>();
212: }
213: return this .icon;
214: }
215:
216: /**
217: * Gets the value of the enterpriseBeans property.
218: *
219: * @return
220: * possible object is
221: * {@link EnterpriseBeansType }
222: *
223: */
224: public EnterpriseBeansType getEnterpriseBeans() {
225: return enterpriseBeans;
226: }
227:
228: /**
229: * Sets the value of the enterpriseBeans property.
230: *
231: * @param value
232: * allowed object is
233: * {@link EnterpriseBeansType }
234: *
235: */
236: public void setEnterpriseBeans(EnterpriseBeansType value) {
237: this .enterpriseBeans = value;
238: }
239:
240: /**
241: * Gets the value of the relationships property.
242: *
243: * @return
244: * possible object is
245: * {@link RelationshipsType }
246: *
247: */
248: public RelationshipsType getRelationships() {
249: return relationships;
250: }
251:
252: /**
253: * Sets the value of the relationships property.
254: *
255: * @param value
256: * allowed object is
257: * {@link RelationshipsType }
258: *
259: */
260: public void setRelationships(RelationshipsType value) {
261: this .relationships = value;
262: }
263:
264: /**
265: * Gets the value of the assemblyDescriptor property.
266: *
267: * @return
268: * possible object is
269: * {@link AssemblyDescriptorType }
270: *
271: */
272: public AssemblyDescriptorType getAssemblyDescriptor() {
273: return assemblyDescriptor;
274: }
275:
276: /**
277: * Sets the value of the assemblyDescriptor property.
278: *
279: * @param value
280: * allowed object is
281: * {@link AssemblyDescriptorType }
282: *
283: */
284: public void setAssemblyDescriptor(AssemblyDescriptorType value) {
285: this .assemblyDescriptor = value;
286: }
287:
288: /**
289: * Gets the value of the ejbClientJar property.
290: *
291: * @return
292: * possible object is
293: * {@link PathType }
294: *
295: */
296: public PathType getEjbClientJar() {
297: return ejbClientJar;
298: }
299:
300: /**
301: * Sets the value of the ejbClientJar property.
302: *
303: * @param value
304: * allowed object is
305: * {@link PathType }
306: *
307: */
308: public void setEjbClientJar(PathType value) {
309: this .ejbClientJar = value;
310: }
311:
312: /**
313: * Gets the value of the id property.
314: *
315: * @return
316: * possible object is
317: * {@link java.lang.String }
318: *
319: */
320: public java.lang.String getId() {
321: return id;
322: }
323:
324: /**
325: * Sets the value of the id property.
326: *
327: * @param value
328: * allowed object is
329: * {@link java.lang.String }
330: *
331: */
332: public void setId(java.lang.String value) {
333: this .id = value;
334: }
335:
336: /**
337: * Gets the value of the version property.
338: *
339: * @return
340: * possible object is
341: * {@link BigDecimal }
342: *
343: */
344: public BigDecimal getVersion() {
345: if (version == null) {
346: return new BigDecimal("2.1");
347: } else {
348: return version;
349: }
350: }
351:
352: /**
353: * Sets the value of the version property.
354: *
355: * @param value
356: * allowed object is
357: * {@link BigDecimal }
358: *
359: */
360: public void setVersion(BigDecimal value) {
361: this.version = value;
362: }
363:
364: }
|