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.sun;
017:
018: import org.apache.openejb.jee.KeyedCollection;
019:
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlType;
024: import java.util.ArrayList;
025: import java.util.Collection;
026: import java.util.List;
027: import java.util.Map;
028:
029: @XmlAccessorType(XmlAccessType.FIELD)
030: @XmlType(name="",propOrder={"name","uniqueId","ejb","pmDescriptors","cmpResource","messageDestination","webserviceDescription"})
031: public class EnterpriseBeans {
032: protected String name;
033: @XmlElement(name="unique-id")
034: protected String uniqueId;
035: protected List<Ejb> ejb;
036: @XmlElement(name="pm-descriptors")
037: protected PmDescriptors pmDescriptors;
038: @XmlElement(name="cmp-resource")
039: protected CmpResource cmpResource;
040: @XmlElement(name="message-destination")
041: protected List<MessageDestination> messageDestination;
042: @XmlElement(name="webservice-description")
043: protected KeyedCollection<String, WebserviceDescription> webserviceDescription;
044:
045: public String getName() {
046: return name;
047: }
048:
049: public void setName(String value) {
050: this .name = value;
051: }
052:
053: public String getUniqueId() {
054: return uniqueId;
055: }
056:
057: public void setUniqueId(String value) {
058: this .uniqueId = value;
059: }
060:
061: public List<Ejb> getEjb() {
062: if (ejb == null) {
063: ejb = new ArrayList<Ejb>();
064: }
065: return this .ejb;
066: }
067:
068: public PmDescriptors getPmDescriptors() {
069: return pmDescriptors;
070: }
071:
072: public void setPmDescriptors(PmDescriptors value) {
073: this .pmDescriptors = value;
074: }
075:
076: public CmpResource getCmpResource() {
077: return cmpResource;
078: }
079:
080: public void setCmpResource(CmpResource value) {
081: this .cmpResource = value;
082: }
083:
084: public List<MessageDestination> getMessageDestination() {
085: if (messageDestination == null) {
086: messageDestination = new ArrayList<MessageDestination>();
087: }
088: return this .messageDestination;
089: }
090:
091: public Collection<WebserviceDescription> getWebserviceDescription() {
092: if (webserviceDescription == null) {
093: webserviceDescription = new KeyedCollection<String, WebserviceDescription>();
094: }
095: return this .webserviceDescription;
096: }
097:
098: public Map<String, WebserviceDescription> getWebserviceDescriptionMap() {
099: if (webserviceDescription == null) {
100: webserviceDescription = new KeyedCollection<String, WebserviceDescription>();
101: }
102: return this.webserviceDescription.toMap();
103: }
104: }
|