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   
   28   import org.w3c.dom.Element;
   29   
   30   
   31   /**
   32    * 
   33    *                 Mirrors the moduleType defined by application_1_4.xsd and adds
   34    *                 an optional alt-dd element defining a Geronimo specific
   35    *                 deployment descriptor for J2EE connector, ejb, web, or java
   36    *                 client modules.
   37    *             
   38    * 
   39    * <p>Java class for moduleType complex type.
   40    * 
   41    * <p>The following schema fragment specifies the expected content contained within this class.
   42    * 
   43    * <pre>
   44    * &lt;complexType name="moduleType">
   45    *   &lt;complexContent>
   46    *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
   47    *       &lt;sequence>
   48    *         &lt;choice>
   49    *           &lt;element name="connector" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   50    *           &lt;element name="ejb" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   51    *           &lt;element name="java" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   52    *           &lt;element name="web" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   53    *         &lt;/choice>
   54    *         &lt;choice>
   55    *           &lt;element name="alt-dd" type="{http://geronimo.apache.org/xml/ns/j2ee/application-2.0}pathType"/>
   56    *           &lt;any/>
   57    *         &lt;/choice>
   58    *       &lt;/sequence>
   59    *     &lt;/restriction>
   60    *   &lt;/complexContent>
   61    * &lt;/complexType>
   62    * </pre>
   63    * 
   64    * @version $Rev: 672450 $ $Date: 2008-06-28 09:21:07 +0800 (Sat, 28 Jun 2008) $
   65    */
   66   @XmlAccessorType(XmlAccessType.FIELD)
   67   @XmlType(name = "moduleType", propOrder = {
   68       "connector",
   69       "ejb",
   70       "java",
   71       "web",
   72       "altDd",
   73       "any"
   74   })
   75   public class Module
   76       implements Serializable
   77   {
   78   
   79       private final static long serialVersionUID = 12343L;
   80       protected Path connector;
   81       protected Path ejb;
   82       protected Path java;
   83       protected Path web;
   84       @XmlElement(name = "alt-dd")
   85       protected Path altDd;
   86       @XmlAnyElement(lax = true)
   87       protected Object any;
   88   
   89       /**
   90        * Gets the value of the connector property.
   91        * 
   92        * @return
   93        *     possible object is
   94        *     {@link Path }
   95        *     
   96        */
   97       public Path getConnector() {
   98           return connector;
   99       }
  100   
  101       /**
  102        * Sets the value of the connector property.
  103        * 
  104        * @param value
  105        *     allowed object is
  106        *     {@link Path }
  107        *     
  108        */
  109       public void setConnector(Path value) {
  110           this.connector = value;
  111       }
  112   
  113       /**
  114        * Gets the value of the ejb property.
  115        * 
  116        * @return
  117        *     possible object is
  118        *     {@link Path }
  119        *     
  120        */
  121       public Path getEjb() {
  122           return ejb;
  123       }
  124   
  125       /**
  126        * Sets the value of the ejb property.
  127        * 
  128        * @param value
  129        *     allowed object is
  130        *     {@link Path }
  131        *     
  132        */
  133       public void setEjb(Path value) {
  134           this.ejb = value;
  135       }
  136   
  137       /**
  138        * Gets the value of the java property.
  139        * 
  140        * @return
  141        *     possible object is
  142        *     {@link Path }
  143        *     
  144        */
  145       public Path getJava() {
  146           return java;
  147       }
  148   
  149       /**
  150        * Sets the value of the java property.
  151        * 
  152        * @param value
  153        *     allowed object is
  154        *     {@link Path }
  155        *     
  156        */
  157       public void setJava(Path value) {
  158           this.java = value;
  159       }
  160   
  161       /**
  162        * Gets the value of the web property.
  163        * 
  164        * @return
  165        *     possible object is
  166        *     {@link Path }
  167        *     
  168        */
  169       public Path getWeb() {
  170           return web;
  171       }
  172   
  173       /**
  174        * Sets the value of the web property.
  175        * 
  176        * @param value
  177        *     allowed object is
  178        *     {@link Path }
  179        *     
  180        */
  181       public void setWeb(Path value) {
  182           this.web = value;
  183       }
  184   
  185       /**
  186        * Gets the value of the altDd property.
  187        * 
  188        * @return
  189        *     possible object is
  190        *     {@link Path }
  191        *     
  192        */
  193       public Path getAltDd() {
  194           return altDd;
  195       }
  196   
  197       /**
  198        * Sets the value of the altDd property.
  199        * 
  200        * @param value
  201        *     allowed object is
  202        *     {@link Path }
  203        *     
  204        */
  205       public void setAltDd(Path value) {
  206           if (value.getValue().length() > 0)
  207               this.altDd = value;
  208           else
  209               this.altDd = null;
  210       }
  211   
  212       /**
  213        * Gets the value of the any property.
  214        * 
  215        * @return
  216        *     possible object is
  217        *     {@link Element }
  218        *     {@link Object }
  219        *     
  220        */
  221       public Object getAny() {
  222           return any;
  223       }
  224   
  225       /**
  226        * Sets the value of the any property.
  227        * 
  228        * @param value
  229        *     allowed object is
  230        *     {@link Element }
  231        *     {@link Object }
  232        *     
  233        */
  234       public void setAny(Object value) {
  235           this.any = value;
  236       }
  237   
  238   }

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