Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.jee.application » [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   
   18   package org.apache.geronimo.jee.application;
   19   
   20   import java.io.Serializable;
   21   
   22   import javax.xml.bind.annotation.XmlAccessType;
   23   import javax.xml.bind.annotation.XmlAccessorType;
   24   import javax.xml.bind.annotation.XmlAnyElement;
   25   import javax.xml.bind.annotation.XmlElement;
   26   import javax.xml.bind.annotation.XmlType;
   27   import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
   28   import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
   29   
   30   import org.apache.geronimo.jee.deployment.Pattern;
   31   import org.w3c.dom.Element;
   32   
   33   
   34   /**
   35    * 
   36    *                 It is used to define modules included in this application
   37    *                 externally and is not a part of the archive. It defines optional
   38    *                 internal-path or external-path to module/repository element
   39    *                 being referenced.
   40    *             
   41    * 
   42    * <p>Java class for ext-moduleType complex type.
   43    * 
   44    * <p>The following schema fragment specifies the expected content contained within this class.
   45    * 
   46    * <pre>
   47    * &lt;complexType name="ext-moduleType">
   48    *   &lt;complexContent>
   49    *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
   50    *       &lt;sequence>
   51    *         &lt;choice>
   52    *           &lt;element name="connector" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   53    *           &lt;element name="ejb" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   54    *           &lt;element name="java" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   55    *           &lt;element name="web" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   56    *         &lt;/choice>
   57    *         &lt;choice>
   58    *           &lt;element name="internal-path" type="{http://www.w3.org/2001/XMLSchema}token"/>
   59    *           &lt;element name="external-path" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}patternType"/>
   60    *         &lt;/choice>
   61    *         &lt;any/>
   62    *       &lt;/sequence>
   63    *     &lt;/restriction>
   64    *   &lt;/complexContent>
   65    * &lt;/complexType>
   66    * </pre>
   67    * 
   68    * @version $Rev: 672450 $ $Date: 2008-06-28 09:21:07 +0800 (Sat, 28 Jun 2008) $
   69    */
   70   @XmlAccessorType(XmlAccessType.FIELD)
   71   @XmlType(name = "ext-moduleType", propOrder = {
   72       "connector",
   73       "ejb",
   74       "java",
   75       "web",
   76       "internalPath",
   77       "externalPath",
   78       "any"
   79   })
   80   public class ExtModule
   81       implements Serializable
   82   {
   83   
   84       private final static long serialVersionUID = 12343L;
   85       protected Path connector;
   86       protected Path ejb;
   87       protected Path java;
   88       protected Path web;
   89       @XmlElement(name = "internal-path")
   90       @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
   91       protected java.lang.String internalPath;
   92       @XmlElement(name = "external-path")
   93       protected Pattern externalPath;
   94       @XmlAnyElement(lax = true)
   95       protected Object any;
   96   
   97       /**
   98        * Gets the value of the connector property.
   99        * 
  100        * @return
  101        *     possible object is
  102        *     {@link Path }
  103        *     
  104        */
  105       public Path getConnector() {
  106           return connector;
  107       }
  108   
  109       /**
  110        * Sets the value of the connector property.
  111        * 
  112        * @param value
  113        *     allowed object is
  114        *     {@link Path }
  115        *     
  116        */
  117       public void setConnector(Path value) {
  118           this.connector = value;
  119       }
  120   
  121       /**
  122        * Gets the value of the ejb property.
  123        * 
  124        * @return
  125        *     possible object is
  126        *     {@link Path }
  127        *     
  128        */
  129       public Path getEjb() {
  130           return ejb;
  131       }
  132   
  133       /**
  134        * Sets the value of the ejb property.
  135        * 
  136        * @param value
  137        *     allowed object is
  138        *     {@link Path }
  139        *     
  140        */
  141       public void setEjb(Path value) {
  142           this.ejb = value;
  143       }
  144   
  145       /**
  146        * Gets the value of the java property.
  147        * 
  148        * @return
  149        *     possible object is
  150        *     {@link Path }
  151        *     
  152        */
  153       public Path getJava() {
  154           return java;
  155       }
  156   
  157       /**
  158        * Sets the value of the java property.
  159        * 
  160        * @param value
  161        *     allowed object is
  162        *     {@link Path }
  163        *     
  164        */
  165       public void setJava(Path value) {
  166           this.java = value;
  167       }
  168   
  169       /**
  170        * Gets the value of the web property.
  171        * 
  172        * @return
  173        *     possible object is
  174        *     {@link Path }
  175        *     
  176        */
  177       public Path getWeb() {
  178           return web;
  179       }
  180   
  181       /**
  182        * Sets the value of the web property.
  183        * 
  184        * @param value
  185        *     allowed object is
  186        *     {@link Path }
  187        *     
  188        */
  189       public void setWeb(Path value) {
  190           this.web = value;
  191       }
  192   
  193       /**
  194        * Gets the value of the internalPath property.
  195        * 
  196        * @return
  197        *     possible object is
  198        *     {@link java.lang.String }
  199        *     
  200        */
  201       public java.lang.String getInternalPath() {
  202           return internalPath;
  203       }
  204   
  205       /**
  206        * Sets the value of the internalPath property.
  207        * 
  208        * @param value
  209        *     allowed object is
  210        *     {@link java.lang.String }
  211        *     
  212        */
  213       public void setInternalPath(java.lang.String value) {
  214           if (value == null || value.length() == 0)
  215               this.internalPath = null;
  216           else
  217               this.internalPath = value;
  218       }
  219   
  220       /**
  221        * Gets the value of the externalPath property.
  222        * 
  223        * @return
  224        *     possible object is
  225        *     {@link Pattern }
  226        *     
  227        */
  228       public Pattern getExternalPath() {
  229           return externalPath;
  230       }
  231   
  232       /**
  233        * Sets the value of the externalPath property.
  234        * 
  235        * @param value
  236        *     allowed object is
  237        *     {@link Pattern }
  238        *     
  239        */
  240       public void setExternalPath(Pattern value) {
  241           this.externalPath = value;
  242       }
  243   
  244       /**
  245        * Gets the value of the any property.
  246        * 
  247        * @return
  248        *     possible object is
  249        *     {@link Element }
  250        *     {@link Object }
  251        *     
  252        */
  253       public Object getAny() {
  254           return any;
  255       }
  256   
  257       /**
  258        * Sets the value of the any property.
  259        * 
  260        * @param value
  261        *     allowed object is
  262        *     {@link Element }
  263        *     {@link Object }
  264        *     
  265        */
  266       public void setAny(Object value) {
  267           this.any = value;
  268       }
  269   
  270   }

Home » geronimo-eclipse-plugin-2.2-source-release » org.apache.geronimo.jee.application » [javadoc | source]