001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlAttribute;
023: import javax.xml.bind.annotation.XmlElement;
024: import javax.xml.bind.annotation.XmlID;
025: import javax.xml.bind.annotation.XmlType;
026: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
027: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
028:
029: /**
030: * <p>Java class for weblogic-ejb-jar complex type.
031: *
032: * <p>The following schema fragment specifies the expected content contained within this class.
033: *
034: * <pre>
035: * <complexType name="weblogic-ejb-jar">
036: * <complexContent>
037: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038: * <sequence>
039: * <element name="description" type="{http://www.bea.com/ns/weblogic/90}description" minOccurs="0"/>
040: * <element name="weblogic-enterprise-bean" type="{http://www.bea.com/ns/weblogic/90}weblogic-enterprise-bean" maxOccurs="unbounded" minOccurs="0"/>
041: * <element name="security-role-assignment" type="{http://www.bea.com/ns/weblogic/90}security-role-assignment" maxOccurs="unbounded" minOccurs="0"/>
042: * <element name="run-as-role-assignment" type="{http://www.bea.com/ns/weblogic/90}run-as-role-assignment" maxOccurs="unbounded" minOccurs="0"/>
043: * <element name="security-permission" type="{http://www.bea.com/ns/weblogic/90}security-permission" minOccurs="0"/>
044: * <element name="transaction-isolation" type="{http://www.bea.com/ns/weblogic/90}transaction-isolation" maxOccurs="unbounded" minOccurs="0"/>
045: * <element name="message-destination-descriptor" type="{http://www.bea.com/ns/weblogic/90}message-destination-descriptor" maxOccurs="unbounded" minOccurs="0"/>
046: * <element name="idempotent-methods" type="{http://www.bea.com/ns/weblogic/90}idempotent-methods" minOccurs="0"/>
047: * <element name="retry-methods-on-rollback" type="{http://www.bea.com/ns/weblogic/90}retry-methods-on-rollback" maxOccurs="unbounded" minOccurs="0"/>
048: * <element name="enable-bean-class-redeploy" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
049: * <element name="disable-warning" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
050: * <element name="work-manager" type="{http://www.bea.com/ns/weblogic/90}work-manager" maxOccurs="unbounded" minOccurs="0"/>
051: * <element name="weblogic-compatibility" type="{http://www.bea.com/ns/weblogic/90}weblogic-compatibility" minOccurs="0"/>
052: * </sequence>
053: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
054: * </restriction>
055: * </complexContent>
056: * </complexType>
057: * </pre>
058: *
059: *
060: */
061: @XmlAccessorType(XmlAccessType.FIELD)
062: @XmlType(name="weblogic-ejb-jar",propOrder={"description","weblogicEnterpriseBean","securityRoleAssignment","runAsRoleAssignment","securityPermission","transactionIsolation","messageDestinationDescriptor","idempotentMethods","retryMethodsOnRollback","enableBeanClassRedeploy","disableWarning","workManager","weblogicCompatibility"})
063: public class WeblogicEjbJar {
064:
065: protected Description description;
066: @XmlElement(name="weblogic-enterprise-bean")
067: protected List<WeblogicEnterpriseBean> weblogicEnterpriseBean;
068: @XmlElement(name="security-role-assignment")
069: protected List<SecurityRoleAssignment> securityRoleAssignment;
070: @XmlElement(name="run-as-role-assignment")
071: protected List<RunAsRoleAssignment> runAsRoleAssignment;
072: @XmlElement(name="security-permission")
073: protected SecurityPermission securityPermission;
074: @XmlElement(name="transaction-isolation")
075: protected List<TransactionIsolation> transactionIsolation;
076: @XmlElement(name="message-destination-descriptor")
077: protected List<MessageDestinationDescriptor> messageDestinationDescriptor;
078: @XmlElement(name="idempotent-methods")
079: protected IdempotentMethods idempotentMethods;
080: @XmlElement(name="retry-methods-on-rollback")
081: protected List<RetryMethodsOnRollback> retryMethodsOnRollback;
082: @XmlElement(name="enable-bean-class-redeploy")
083: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
084: protected Boolean enableBeanClassRedeploy;
085: @XmlElement(name="disable-warning")
086: protected List<String> disableWarning;
087: @XmlElement(name="work-manager")
088: protected List<WorkManager> workManager;
089: @XmlElement(name="weblogic-compatibility")
090: protected WeblogicCompatibility weblogicCompatibility;
091: @XmlAttribute
092: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
093: @XmlID
094: protected String id;
095:
096: /**
097: * Gets the value of the description property.
098: *
099: * @return
100: * possible object is
101: * {@link Description }
102: *
103: */
104: public Description getDescription() {
105: return description;
106: }
107:
108: /**
109: * Sets the value of the description property.
110: *
111: * @param value
112: * allowed object is
113: * {@link Description }
114: *
115: */
116: public void setDescription(Description value) {
117: this .description = value;
118: }
119:
120: /**
121: * Gets the value of the weblogicEnterpriseBean property.
122: *
123: * <p>
124: * This accessor method returns a reference to the live list,
125: * not a snapshot. Therefore any modification you make to the
126: * returned list will be present inside the JAXB object.
127: * This is why there is not a <CODE>set</CODE> method for the weblogicEnterpriseBean property.
128: *
129: * <p>
130: * For example, to add a new item, do as follows:
131: * <pre>
132: * getWeblogicEnterpriseBean().add(newItem);
133: * </pre>
134: *
135: *
136: * <p>
137: * Objects of the following type(s) are allowed in the list
138: * {@link WeblogicEnterpriseBean }
139: *
140: *
141: */
142: public List<WeblogicEnterpriseBean> getWeblogicEnterpriseBean() {
143: if (weblogicEnterpriseBean == null) {
144: weblogicEnterpriseBean = new ArrayList<WeblogicEnterpriseBean>();
145: }
146: return this .weblogicEnterpriseBean;
147: }
148:
149: /**
150: * Gets the value of the securityRoleAssignment property.
151: *
152: * <p>
153: * This accessor method returns a reference to the live list,
154: * not a snapshot. Therefore any modification you make to the
155: * returned list will be present inside the JAXB object.
156: * This is why there is not a <CODE>set</CODE> method for the securityRoleAssignment property.
157: *
158: * <p>
159: * For example, to add a new item, do as follows:
160: * <pre>
161: * getSecurityRoleAssignment().add(newItem);
162: * </pre>
163: *
164: *
165: * <p>
166: * Objects of the following type(s) are allowed in the list
167: * {@link SecurityRoleAssignment }
168: *
169: *
170: */
171: public List<SecurityRoleAssignment> getSecurityRoleAssignment() {
172: if (securityRoleAssignment == null) {
173: securityRoleAssignment = new ArrayList<SecurityRoleAssignment>();
174: }
175: return this .securityRoleAssignment;
176: }
177:
178: /**
179: * Gets the value of the runAsRoleAssignment property.
180: *
181: * <p>
182: * This accessor method returns a reference to the live list,
183: * not a snapshot. Therefore any modification you make to the
184: * returned list will be present inside the JAXB object.
185: * This is why there is not a <CODE>set</CODE> method for the runAsRoleAssignment property.
186: *
187: * <p>
188: * For example, to add a new item, do as follows:
189: * <pre>
190: * getRunAsRoleAssignment().add(newItem);
191: * </pre>
192: *
193: *
194: * <p>
195: * Objects of the following type(s) are allowed in the list
196: * {@link RunAsRoleAssignment }
197: *
198: *
199: */
200: public List<RunAsRoleAssignment> getRunAsRoleAssignment() {
201: if (runAsRoleAssignment == null) {
202: runAsRoleAssignment = new ArrayList<RunAsRoleAssignment>();
203: }
204: return this .runAsRoleAssignment;
205: }
206:
207: /**
208: * Gets the value of the securityPermission property.
209: *
210: * @return
211: * possible object is
212: * {@link SecurityPermission }
213: *
214: */
215: public SecurityPermission getSecurityPermission() {
216: return securityPermission;
217: }
218:
219: /**
220: * Sets the value of the securityPermission property.
221: *
222: * @param value
223: * allowed object is
224: * {@link SecurityPermission }
225: *
226: */
227: public void setSecurityPermission(SecurityPermission value) {
228: this .securityPermission = value;
229: }
230:
231: /**
232: * Gets the value of the transactionIsolation property.
233: *
234: * <p>
235: * This accessor method returns a reference to the live list,
236: * not a snapshot. Therefore any modification you make to the
237: * returned list will be present inside the JAXB object.
238: * This is why there is not a <CODE>set</CODE> method for the transactionIsolation property.
239: *
240: * <p>
241: * For example, to add a new item, do as follows:
242: * <pre>
243: * getTransactionIsolation().add(newItem);
244: * </pre>
245: *
246: *
247: * <p>
248: * Objects of the following type(s) are allowed in the list
249: * {@link TransactionIsolation }
250: *
251: *
252: */
253: public List<TransactionIsolation> getTransactionIsolation() {
254: if (transactionIsolation == null) {
255: transactionIsolation = new ArrayList<TransactionIsolation>();
256: }
257: return this .transactionIsolation;
258: }
259:
260: /**
261: * Gets the value of the messageDestinationDescriptor property.
262: *
263: * <p>
264: * This accessor method returns a reference to the live list,
265: * not a snapshot. Therefore any modification you make to the
266: * returned list will be present inside the JAXB object.
267: * This is why there is not a <CODE>set</CODE> method for the messageDestinationDescriptor property.
268: *
269: * <p>
270: * For example, to add a new item, do as follows:
271: * <pre>
272: * getMessageDestinationDescriptor().add(newItem);
273: * </pre>
274: *
275: *
276: * <p>
277: * Objects of the following type(s) are allowed in the list
278: * {@link MessageDestinationDescriptor }
279: *
280: *
281: */
282: public List<MessageDestinationDescriptor> getMessageDestinationDescriptor() {
283: if (messageDestinationDescriptor == null) {
284: messageDestinationDescriptor = new ArrayList<MessageDestinationDescriptor>();
285: }
286: return this .messageDestinationDescriptor;
287: }
288:
289: /**
290: * Gets the value of the idempotentMethods property.
291: *
292: * @return
293: * possible object is
294: * {@link IdempotentMethods }
295: *
296: */
297: public IdempotentMethods getIdempotentMethods() {
298: return idempotentMethods;
299: }
300:
301: /**
302: * Sets the value of the idempotentMethods property.
303: *
304: * @param value
305: * allowed object is
306: * {@link IdempotentMethods }
307: *
308: */
309: public void setIdempotentMethods(IdempotentMethods value) {
310: this .idempotentMethods = value;
311: }
312:
313: /**
314: * Gets the value of the retryMethodsOnRollback property.
315: *
316: * <p>
317: * This accessor method returns a reference to the live list,
318: * not a snapshot. Therefore any modification you make to the
319: * returned list will be present inside the JAXB object.
320: * This is why there is not a <CODE>set</CODE> method for the retryMethodsOnRollback property.
321: *
322: * <p>
323: * For example, to add a new item, do as follows:
324: * <pre>
325: * getRetryMethodsOnRollback().add(newItem);
326: * </pre>
327: *
328: *
329: * <p>
330: * Objects of the following type(s) are allowed in the list
331: * {@link RetryMethodsOnRollback }
332: *
333: *
334: */
335: public List<RetryMethodsOnRollback> getRetryMethodsOnRollback() {
336: if (retryMethodsOnRollback == null) {
337: retryMethodsOnRollback = new ArrayList<RetryMethodsOnRollback>();
338: }
339: return this .retryMethodsOnRollback;
340: }
341:
342: /**
343: * Gets the value of the enableBeanClassRedeploy property.
344: *
345: * @return
346: * possible object is
347: * {@link Boolean }
348: *
349: */
350: public Boolean getEnableBeanClassRedeploy() {
351: return enableBeanClassRedeploy;
352: }
353:
354: /**
355: * Sets the value of the enableBeanClassRedeploy property.
356: *
357: * @param value
358: * allowed object is
359: * {@link Boolean }
360: *
361: */
362: public void setEnableBeanClassRedeploy(Boolean value) {
363: this .enableBeanClassRedeploy = value;
364: }
365:
366: /**
367: * Gets the value of the disableWarning property.
368: *
369: * <p>
370: * This accessor method returns a reference to the live list,
371: * not a snapshot. Therefore any modification you make to the
372: * returned list will be present inside the JAXB object.
373: * This is why there is not a <CODE>set</CODE> method for the disableWarning property.
374: *
375: * <p>
376: * For example, to add a new item, do as follows:
377: * <pre>
378: * getDisableWarning().add(newItem);
379: * </pre>
380: *
381: *
382: * <p>
383: * Objects of the following type(s) are allowed in the list
384: * {@link String }
385: *
386: *
387: */
388: public List<String> getDisableWarning() {
389: if (disableWarning == null) {
390: disableWarning = new ArrayList<String>();
391: }
392: return this .disableWarning;
393: }
394:
395: /**
396: * Gets the value of the workManager property.
397: *
398: * <p>
399: * This accessor method returns a reference to the live list,
400: * not a snapshot. Therefore any modification you make to the
401: * returned list will be present inside the JAXB object.
402: * This is why there is not a <CODE>set</CODE> method for the workManager property.
403: *
404: * <p>
405: * For example, to add a new item, do as follows:
406: * <pre>
407: * getWorkManager().add(newItem);
408: * </pre>
409: *
410: *
411: * <p>
412: * Objects of the following type(s) are allowed in the list
413: * {@link WorkManager }
414: *
415: *
416: */
417: public List<WorkManager> getWorkManager() {
418: if (workManager == null) {
419: workManager = new ArrayList<WorkManager>();
420: }
421: return this .workManager;
422: }
423:
424: /**
425: * Gets the value of the weblogicCompatibility property.
426: *
427: * @return
428: * possible object is
429: * {@link WeblogicCompatibility }
430: *
431: */
432: public WeblogicCompatibility getWeblogicCompatibility() {
433: return weblogicCompatibility;
434: }
435:
436: /**
437: * Sets the value of the weblogicCompatibility property.
438: *
439: * @param value
440: * allowed object is
441: * {@link WeblogicCompatibility }
442: *
443: */
444: public void setWeblogicCompatibility(WeblogicCompatibility value) {
445: this .weblogicCompatibility = value;
446: }
447:
448: /**
449: * Gets the value of the id property.
450: *
451: * @return
452: * possible object is
453: * {@link String }
454: *
455: */
456: public String getId() {
457: return id;
458: }
459:
460: /**
461: * Sets the value of the id property.
462: *
463: * @param value
464: * allowed object is
465: * {@link String }
466: *
467: */
468: public void setId(String value) {
469: this.id = value;
470: }
471:
472: }
|