Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » sun » [javadoc | source]
    1   /**
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   package org.apache.openejb.jee.sun;
   18   
   19   import org.apache.openejb.jee.KeyedCollection;
   20   
   21   import javax.xml.bind.annotation.XmlAccessType;
   22   import javax.xml.bind.annotation.XmlAccessorType;
   23   import javax.xml.bind.annotation.XmlElement;
   24   import javax.xml.bind.annotation.XmlType;
   25   import java.util.ArrayList;
   26   import java.util.Collection;
   27   import java.util.List;
   28   import java.util.Map;
   29   
   30   @XmlAccessorType(XmlAccessType.FIELD)
   31   @XmlType(name = "", propOrder = {
   32       "name",
   33       "uniqueId",
   34       "ejb",
   35       "pmDescriptors",
   36       "cmpResource",
   37       "messageDestination",
   38       "webserviceDescription"
   39   })
   40   public class EnterpriseBeans {
   41       protected String name;
   42       @XmlElement(name = "unique-id")
   43       protected String uniqueId;
   44       protected List<Ejb> ejb;
   45       @XmlElement(name = "pm-descriptors")
   46       protected PmDescriptors pmDescriptors;
   47       @XmlElement(name = "cmp-resource")
   48       protected CmpResource cmpResource;
   49       @XmlElement(name = "message-destination")
   50       protected List<MessageDestination> messageDestination;
   51       @XmlElement(name = "webservice-description")
   52       protected KeyedCollection<String, WebserviceDescription> webserviceDescription;
   53   
   54       public String getName() {
   55           return name;
   56       }
   57   
   58       public void setName(String value) {
   59           this.name = value;
   60       }
   61   
   62       public String getUniqueId() {
   63           return uniqueId;
   64       }
   65   
   66       public void setUniqueId(String value) {
   67           this.uniqueId = value;
   68       }
   69   
   70       public List<Ejb> getEjb() {
   71           if (ejb == null) {
   72               ejb = new ArrayList<Ejb>();
   73           }
   74           return this.ejb;
   75       }
   76   
   77       public PmDescriptors getPmDescriptors() {
   78           return pmDescriptors;
   79       }
   80   
   81       public void setPmDescriptors(PmDescriptors value) {
   82           this.pmDescriptors = value;
   83       }
   84   
   85       public CmpResource getCmpResource() {
   86           return cmpResource;
   87       }
   88   
   89       public void setCmpResource(CmpResource value) {
   90           this.cmpResource = value;
   91       }
   92   
   93       public List<MessageDestination> getMessageDestination() {
   94           if (messageDestination == null) {
   95               messageDestination = new ArrayList<MessageDestination>();
   96           }
   97           return this.messageDestination;
   98       }
   99   
  100       public Collection<WebserviceDescription> getWebserviceDescription() {
  101           if (webserviceDescription == null) {
  102               webserviceDescription = new KeyedCollection<String,WebserviceDescription>();
  103           }
  104           return this.webserviceDescription;
  105       }
  106   
  107       public Map<String,WebserviceDescription> getWebserviceDescriptionMap() {
  108           if (webserviceDescription == null) {
  109               webserviceDescription = new KeyedCollection<String,WebserviceDescription>();
  110           }
  111           return this.webserviceDescription.toMap();
  112       }
  113   }

Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » sun » [javadoc | source]