Save This Page
Home » openejb-3.1.2-src » org.apache » openejb » jee » [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;
   18   
   19   import javax.xml.bind.annotation.XmlAccessType;
   20   import javax.xml.bind.annotation.XmlAccessorType;
   21   import javax.xml.bind.annotation.XmlAttribute;
   22   import javax.xml.bind.annotation.XmlElement;
   23   import javax.xml.bind.annotation.XmlID;
   24   import javax.xml.bind.annotation.XmlType;
   25   import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
   26   import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
   27   import java.util.ArrayList;
   28   import java.util.List;
   29   
   30   /**
   31    * The config-propertyType contains a declaration of a single
   32    * configuration property that may be used for providing
   33    * configuration information.
   34    * <p/>
   35    * The declaration consists of an optional description, name,
   36    * type and an optional value of the configuration property. If
   37    * the resource adapter provider does not specify a value than
   38    * the deployer is responsible for providing a valid value for
   39    * a configuration property.
   40    * <p/>
   41    * Any bounds or well-defined values of properties should be
   42    * described in the description element.
   43    */
   44   @XmlAccessorType(XmlAccessType.FIELD)
   45   @XmlType(name = "config-propertyType", propOrder = {
   46           "description",
   47           "configPropertyName",
   48           "configPropertyType",
   49           "configPropertyValue"
   50   })
   51   public class ConfigProperty {
   52   
   53       protected List<Text> description;
   54       @XmlElement(name = "config-property-name", required = true)
   55       protected String configPropertyName;
   56       @XmlElement(name = "config-property-type", required = true)
   57       protected String configPropertyType;
   58       @XmlElement(name = "config-property-value")
   59       protected String configPropertyValue;
   60       @XmlAttribute
   61       @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
   62       @XmlID
   63       protected String id;
   64   
   65       public List<Text> getDescription() {
   66           if (description == null) {
   67               description = new ArrayList<Text>();
   68           }
   69           return this.description;
   70       }
   71   
   72       public String getConfigPropertyName() {
   73           return configPropertyName;
   74       }
   75   
   76       public void setConfigPropertyName(String value) {
   77           this.configPropertyName = value;
   78       }
   79   
   80       public String getConfigPropertyType() {
   81           return configPropertyType;
   82       }
   83   
   84       public void setConfigPropertyType(String value) {
   85           this.configPropertyType = value;
   86       }
   87   
   88       public String getConfigPropertyValue() {
   89           return configPropertyValue;
   90       }
   91   
   92       public void setConfigPropertyValue(String value) {
   93           this.configPropertyValue = value;
   94       }
   95   
   96       public String getId() {
   97           return id;
   98       }
   99   
  100       public void setId(String value) {
  101           this.id = value;
  102       }
  103   
  104   }

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