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.math.BigInteger;
019: import java.util.ArrayList;
020: import java.util.List;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElement;
025: import javax.xml.bind.annotation.XmlID;
026: import javax.xml.bind.annotation.XmlType;
027: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
028: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
029:
030: /**
031: * <p>Java class for weblogic-enterprise-bean complex type.
032: *
033: * <p>The following schema fragment specifies the expected content contained within this class.
034: *
035: * <pre>
036: * <complexType name="weblogic-enterprise-bean">
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="ejb-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <choice minOccurs="0">
042: * <element name="entity-descriptor" type="{http://www.bea.com/ns/weblogic/90}entity-descriptor"/>
043: * <element name="stateless-session-descriptor" type="{http://www.bea.com/ns/weblogic/90}stateless-session-descriptor"/>
044: * <element name="stateful-session-descriptor" type="{http://www.bea.com/ns/weblogic/90}stateful-session-descriptor"/>
045: * <element name="message-driven-descriptor" type="{http://www.bea.com/ns/weblogic/90}message-driven-descriptor"/>
046: * </choice>
047: * <element name="transaction-descriptor" type="{http://www.bea.com/ns/weblogic/90}transaction-descriptor" minOccurs="0"/>
048: * <element name="iiop-security-descriptor" type="{http://www.bea.com/ns/weblogic/90}iiop-security-descriptor" minOccurs="0"/>
049: * <group ref="{http://www.bea.com/ns/weblogic/90}reference-descriptorGroup"/>
050: * <element name="enable-call-by-reference" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
051: * <element name="network-access-point" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
052: * <element name="clients-on-same-server" type="{http://www.bea.com/ns/weblogic/90}true-false" minOccurs="0"/>
053: * <element name="run-as-principal-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
054: * <element name="create-as-principal-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
055: * <element name="remove-as-principal-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
056: * <element name="passivate-as-principal-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
057: * <element name="jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
058: * <element name="local-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
059: * <element name="dispatch-policy" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
060: * <element name="remote-client-timeout" type="{http://www.w3.org/2001/XMLSchema}integer" minOccurs="0"/>
061: * </sequence>
062: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
063: * </restriction>
064: * </complexContent>
065: * </complexType>
066: * </pre>
067: *
068: *
069: */
070: @XmlAccessorType(XmlAccessType.FIELD)
071: @XmlType(name="weblogic-enterprise-bean",propOrder={"ejbName","entityDescriptor","statelessSessionDescriptor","statefulSessionDescriptor","messageDrivenDescriptor","transactionDescriptor","iiopSecurityDescriptor","referenceDescriptor","resourceDescription","resourceEnvDescription","ejbReferenceDescription","serviceReferenceDescription","enableCallByReference","networkAccessPoint","clientsOnSameServer","runAsPrincipalName","createAsPrincipalName","removeAsPrincipalName","passivateAsPrincipalName","jndiName","localJndiName","dispatchPolicy","remoteClientTimeout"})
072: public class WeblogicEnterpriseBean {
073:
074: @XmlElement(name="ejb-name",required=true)
075: protected String ejbName;
076:
077: @XmlElement(name="entity-descriptor")
078: protected EntityDescriptor entityDescriptor;
079:
080: @XmlElement(name="stateless-session-descriptor")
081: protected StatelessSessionDescriptor statelessSessionDescriptor;
082:
083: @XmlElement(name="stateful-session-descriptor")
084: protected StatefulSessionDescriptor statefulSessionDescriptor;
085:
086: @XmlElement(name="message-driven-descriptor")
087: protected MessageDrivenDescriptor messageDrivenDescriptor;
088:
089: @XmlElement(name="transaction-descriptor")
090: protected TransactionDescriptor transactionDescriptor;
091:
092: @XmlElement(name="iiop-security-descriptor")
093: protected IiopSecurityDescriptor iiopSecurityDescriptor;
094:
095: @XmlElement(name="reference-descriptor")
096: protected ReferenceDescriptor referenceDescriptor;
097:
098: @XmlElement(name="resource-description")
099: protected List<ResourceDescription> resourceDescription;
100:
101: @XmlElement(name="resource-env-description")
102: protected List<ResourceEnvDescription> resourceEnvDescription;
103:
104: @XmlElement(name="ejb-reference-description")
105: protected List<EjbReferenceDescription> ejbReferenceDescription;
106:
107: @XmlElement(name="service-reference-description")
108: protected List<ServiceReferenceDescription> serviceReferenceDescription;
109:
110: @XmlElement(name="enable-call-by-reference")
111: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
112: protected Boolean enableCallByReference;
113:
114: @XmlElement(name="network-access-point")
115: protected String networkAccessPoint;
116:
117: @XmlElement(name="clients-on-same-server")
118: @XmlJavaTypeAdapter(TrueFalseAdapter.class)
119: protected Boolean clientsOnSameServer;
120:
121: @XmlElement(name="run-as-principal-name")
122: protected String runAsPrincipalName;
123:
124: @XmlElement(name="create-as-principal-name")
125: protected String createAsPrincipalName;
126:
127: @XmlElement(name="remove-as-principal-name")
128: protected String removeAsPrincipalName;
129:
130: @XmlElement(name="passivate-as-principal-name")
131: protected String passivateAsPrincipalName;
132:
133: @XmlElement(name="jndi-name")
134: protected String jndiName;
135:
136: @XmlElement(name="local-jndi-name")
137: protected String localJndiName;
138:
139: @XmlElement(name="dispatch-policy")
140: protected String dispatchPolicy;
141:
142: @XmlElement(name="remote-client-timeout")
143: protected BigInteger remoteClientTimeout;
144:
145: @XmlAttribute
146: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
147: @XmlID
148: protected String id;
149:
150: /**
151: * Gets the value of the ejbName property.
152: *
153: * @return
154: * possible object is
155: * {@link String }
156: *
157: */
158: public String getEjbName() {
159: return ejbName;
160: }
161:
162: /**
163: * Sets the value of the ejbName property.
164: *
165: * @param value
166: * allowed object is
167: * {@link String }
168: *
169: */
170: public void setEjbName(String value) {
171: this .ejbName = value;
172: }
173:
174: /**
175: * Gets the value of the entityDescriptor property.
176: *
177: * @return
178: * possible object is
179: * {@link EntityDescriptor }
180: *
181: */
182: public EntityDescriptor getEntityDescriptor() {
183: return entityDescriptor;
184: }
185:
186: /**
187: * Sets the value of the entityDescriptor property.
188: *
189: * @param value
190: * allowed object is
191: * {@link EntityDescriptor }
192: *
193: */
194: public void setEntityDescriptor(EntityDescriptor value) {
195: this .entityDescriptor = value;
196: }
197:
198: /**
199: * Gets the value of the statelessSessionDescriptor property.
200: *
201: * @return
202: * possible object is
203: * {@link StatelessSessionDescriptor }
204: *
205: */
206: public StatelessSessionDescriptor getStatelessSessionDescriptor() {
207: return statelessSessionDescriptor;
208: }
209:
210: /**
211: * Sets the value of the statelessSessionDescriptor property.
212: *
213: * @param value
214: * allowed object is
215: * {@link StatelessSessionDescriptor }
216: *
217: */
218: public void setStatelessSessionDescriptor(
219: StatelessSessionDescriptor value) {
220: this .statelessSessionDescriptor = value;
221: }
222:
223: /**
224: * Gets the value of the statefulSessionDescriptor property.
225: *
226: * @return
227: * possible object is
228: * {@link StatefulSessionDescriptor }
229: *
230: */
231: public StatefulSessionDescriptor getStatefulSessionDescriptor() {
232: return statefulSessionDescriptor;
233: }
234:
235: /**
236: * Sets the value of the statefulSessionDescriptor property.
237: *
238: * @param value
239: * allowed object is
240: * {@link StatefulSessionDescriptor }
241: *
242: */
243: public void setStatefulSessionDescriptor(
244: StatefulSessionDescriptor value) {
245: this .statefulSessionDescriptor = value;
246: }
247:
248: /**
249: * Gets the value of the messageDrivenDescriptor property.
250: *
251: * @return
252: * possible object is
253: * {@link MessageDrivenDescriptor }
254: *
255: */
256: public MessageDrivenDescriptor getMessageDrivenDescriptor() {
257: return messageDrivenDescriptor;
258: }
259:
260: /**
261: * Sets the value of the messageDrivenDescriptor property.
262: *
263: * @param value
264: * allowed object is
265: * {@link MessageDrivenDescriptor }
266: *
267: */
268: public void setMessageDrivenDescriptor(MessageDrivenDescriptor value) {
269: this .messageDrivenDescriptor = value;
270: }
271:
272: /**
273: * Gets the value of the transactionDescriptor property.
274: *
275: * @return
276: * possible object is
277: * {@link TransactionDescriptor }
278: *
279: */
280: public TransactionDescriptor getTransactionDescriptor() {
281: return transactionDescriptor;
282: }
283:
284: /**
285: * Sets the value of the transactionDescriptor property.
286: *
287: * @param value
288: * allowed object is
289: * {@link TransactionDescriptor }
290: *
291: */
292: public void setTransactionDescriptor(TransactionDescriptor value) {
293: this .transactionDescriptor = value;
294: }
295:
296: /**
297: * Gets the value of the iiopSecurityDescriptor property.
298: *
299: * @return
300: * possible object is
301: * {@link IiopSecurityDescriptor }
302: *
303: */
304: public IiopSecurityDescriptor getIiopSecurityDescriptor() {
305: return iiopSecurityDescriptor;
306: }
307:
308: /**
309: * Sets the value of the iiopSecurityDescriptor property.
310: *
311: * @param value
312: * allowed object is
313: * {@link IiopSecurityDescriptor }
314: *
315: */
316: public void setIiopSecurityDescriptor(IiopSecurityDescriptor value) {
317: this .iiopSecurityDescriptor = value;
318: }
319:
320: public ReferenceDescriptor getReferenceDescriptor() {
321: return referenceDescriptor;
322: }
323:
324: public void setReferenceDescriptor(
325: ReferenceDescriptor referenceDescriptor) {
326: this .referenceDescriptor = referenceDescriptor;
327: }
328:
329: /**
330: * Gets the value of the resourceDescription property.
331: *
332: * <p>
333: * This accessor method returns a reference to the live list,
334: * not a snapshot. Therefore any modification you make to the
335: * returned list will be present inside the JAXB object.
336: * This is why there is not a <CODE>set</CODE> method for the resourceDescription property.
337: *
338: * <p>
339: * For example, to add a new item, do as follows:
340: * <pre>
341: * getResourceDescription().add(newItem);
342: * </pre>
343: *
344: *
345: * <p>
346: * Objects of the following type(s) are allowed in the list
347: * {@link ResourceDescription }
348: *
349: *
350: */
351: public List<ResourceDescription> getResourceDescription() {
352: if (resourceDescription == null) {
353: resourceDescription = new ArrayList<ResourceDescription>();
354: }
355: return this .resourceDescription;
356: }
357:
358: /**
359: * Gets the value of the resourceEnvDescription property.
360: *
361: * <p>
362: * This accessor method returns a reference to the live list,
363: * not a snapshot. Therefore any modification you make to the
364: * returned list will be present inside the JAXB object.
365: * This is why there is not a <CODE>set</CODE> method for the resourceEnvDescription property.
366: *
367: * <p>
368: * For example, to add a new item, do as follows:
369: * <pre>
370: * getResourceEnvDescription().add(newItem);
371: * </pre>
372: *
373: *
374: * <p>
375: * Objects of the following type(s) are allowed in the list
376: * {@link ResourceEnvDescription }
377: *
378: *
379: */
380: public List<ResourceEnvDescription> getResourceEnvDescription() {
381: if (resourceEnvDescription == null) {
382: resourceEnvDescription = new ArrayList<ResourceEnvDescription>();
383: }
384: return this .resourceEnvDescription;
385: }
386:
387: /**
388: * Gets the value of the ejbReferenceDescription property.
389: *
390: * <p>
391: * This accessor method returns a reference to the live list,
392: * not a snapshot. Therefore any modification you make to the
393: * returned list will be present inside the JAXB object.
394: * This is why there is not a <CODE>set</CODE> method for the ejbReferenceDescription property.
395: *
396: * <p>
397: * For example, to add a new item, do as follows:
398: * <pre>
399: * getEjbReferenceDescription().add(newItem);
400: * </pre>
401: *
402: *
403: * <p>
404: * Objects of the following type(s) are allowed in the list
405: * {@link EjbReferenceDescription }
406: *
407: *
408: */
409: public List<EjbReferenceDescription> getEjbReferenceDescription() {
410: if (ejbReferenceDescription == null) {
411: ejbReferenceDescription = new ArrayList<EjbReferenceDescription>();
412: }
413: return this .ejbReferenceDescription;
414: }
415:
416: /**
417: * Gets the value of the serviceReferenceDescription property.
418: *
419: * <p>
420: * This accessor method returns a reference to the live list,
421: * not a snapshot. Therefore any modification you make to the
422: * returned list will be present inside the JAXB object.
423: * This is why there is not a <CODE>set</CODE> method for the serviceReferenceDescription property.
424: *
425: * <p>
426: * For example, to add a new item, do as follows:
427: * <pre>
428: * getServiceReferenceDescription().add(newItem);
429: * </pre>
430: *
431: *
432: * <p>
433: * Objects of the following type(s) are allowed in the list
434: * {@link ServiceReferenceDescription }
435: *
436: *
437: */
438: public List<ServiceReferenceDescription> getServiceReferenceDescription() {
439: if (serviceReferenceDescription == null) {
440: serviceReferenceDescription = new ArrayList<ServiceReferenceDescription>();
441: }
442: return this .serviceReferenceDescription;
443: }
444:
445: /**
446: * Gets the value of the enableCallByReference property.
447: *
448: * @return
449: * possible object is
450: * {@link Boolean }
451: *
452: */
453: public Boolean getEnableCallByReference() {
454: return enableCallByReference;
455: }
456:
457: /**
458: * Sets the value of the enableCallByReference property.
459: *
460: * @param value
461: * allowed object is
462: * {@link Boolean }
463: *
464: */
465: public void setEnableCallByReference(Boolean value) {
466: this .enableCallByReference = value;
467: }
468:
469: /**
470: * Gets the value of the networkAccessPoint property.
471: *
472: * @return
473: * possible object is
474: * {@link String }
475: *
476: */
477: public String getNetworkAccessPoint() {
478: return networkAccessPoint;
479: }
480:
481: /**
482: * Sets the value of the networkAccessPoint property.
483: *
484: * @param value
485: * allowed object is
486: * {@link String }
487: *
488: */
489: public void setNetworkAccessPoint(String value) {
490: this .networkAccessPoint = value;
491: }
492:
493: /**
494: * Gets the value of the clientsOnSameServer property.
495: *
496: * @return
497: * possible object is
498: * {@link Boolean }
499: *
500: */
501: public Boolean getClientsOnSameServer() {
502: return clientsOnSameServer;
503: }
504:
505: /**
506: * Sets the value of the clientsOnSameServer property.
507: *
508: * @param value
509: * allowed object is
510: * {@link Boolean }
511: *
512: */
513: public void setClientsOnSameServer(Boolean value) {
514: this .clientsOnSameServer = value;
515: }
516:
517: /**
518: * Gets the value of the runAsPrincipalName property.
519: *
520: * @return
521: * possible object is
522: * {@link String }
523: *
524: */
525: public String getRunAsPrincipalName() {
526: return runAsPrincipalName;
527: }
528:
529: /**
530: * Sets the value of the runAsPrincipalName property.
531: *
532: * @param value
533: * allowed object is
534: * {@link String }
535: *
536: */
537: public void setRunAsPrincipalName(String value) {
538: this .runAsPrincipalName = value;
539: }
540:
541: /**
542: * Gets the value of the createAsPrincipalName property.
543: *
544: * @return
545: * possible object is
546: * {@link String }
547: *
548: */
549: public String getCreateAsPrincipalName() {
550: return createAsPrincipalName;
551: }
552:
553: /**
554: * Sets the value of the createAsPrincipalName property.
555: *
556: * @param value
557: * allowed object is
558: * {@link String }
559: *
560: */
561: public void setCreateAsPrincipalName(String value) {
562: this .createAsPrincipalName = value;
563: }
564:
565: /**
566: * Gets the value of the removeAsPrincipalName property.
567: *
568: * @return
569: * possible object is
570: * {@link String }
571: *
572: */
573: public String getRemoveAsPrincipalName() {
574: return removeAsPrincipalName;
575: }
576:
577: /**
578: * Sets the value of the removeAsPrincipalName property.
579: *
580: * @param value
581: * allowed object is
582: * {@link String }
583: *
584: */
585: public void setRemoveAsPrincipalName(String value) {
586: this .removeAsPrincipalName = value;
587: }
588:
589: /**
590: * Gets the value of the passivateAsPrincipalName property.
591: *
592: * @return
593: * possible object is
594: * {@link String }
595: *
596: */
597: public String getPassivateAsPrincipalName() {
598: return passivateAsPrincipalName;
599: }
600:
601: /**
602: * Sets the value of the passivateAsPrincipalName property.
603: *
604: * @param value
605: * allowed object is
606: * {@link String }
607: *
608: */
609: public void setPassivateAsPrincipalName(String value) {
610: this .passivateAsPrincipalName = value;
611: }
612:
613: /**
614: * Gets the value of the jndiName property.
615: *
616: * @return
617: * possible object is
618: * {@link String }
619: *
620: */
621: public String getJndiName() {
622: return jndiName;
623: }
624:
625: /**
626: * Sets the value of the jndiName property.
627: *
628: * @param value
629: * allowed object is
630: * {@link String }
631: *
632: */
633: public void setJndiName(String value) {
634: this .jndiName = value;
635: }
636:
637: /**
638: * Gets the value of the localJndiName property.
639: *
640: * @return
641: * possible object is
642: * {@link String }
643: *
644: */
645: public String getLocalJndiName() {
646: return localJndiName;
647: }
648:
649: /**
650: * Sets the value of the localJndiName property.
651: *
652: * @param value
653: * allowed object is
654: * {@link String }
655: *
656: */
657: public void setLocalJndiName(String value) {
658: this .localJndiName = value;
659: }
660:
661: /**
662: * Gets the value of the dispatchPolicy property.
663: *
664: * @return
665: * possible object is
666: * {@link String }
667: *
668: */
669: public String getDispatchPolicy() {
670: return dispatchPolicy;
671: }
672:
673: /**
674: * Sets the value of the dispatchPolicy property.
675: *
676: * @param value
677: * allowed object is
678: * {@link String }
679: *
680: */
681: public void setDispatchPolicy(String value) {
682: this .dispatchPolicy = value;
683: }
684:
685: /**
686: * Gets the value of the remoteClientTimeout property.
687: *
688: * @return
689: * possible object is
690: * {@link BigInteger }
691: *
692: */
693: public BigInteger getRemoteClientTimeout() {
694: return remoteClientTimeout;
695: }
696:
697: /**
698: * Sets the value of the remoteClientTimeout property.
699: *
700: * @param value
701: * allowed object is
702: * {@link BigInteger }
703: *
704: */
705: public void setRemoteClientTimeout(BigInteger value) {
706: this .remoteClientTimeout = value;
707: }
708:
709: /**
710: * Gets the value of the id property.
711: *
712: * @return
713: * possible object is
714: * {@link String }
715: *
716: */
717: public String getId() {
718: return id;
719: }
720:
721: /**
722: * Sets the value of the id property.
723: *
724: * @param value
725: * allowed object is
726: * {@link String }
727: *
728: */
729: public void setId(String value) {
730: this.id = value;
731: }
732:
733: }
|