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.oejb2;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAnyElement;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlType;
023: import org.w3c.dom.Element;
024:
025: /**
026: *
027: * Mirrors the moduleType defined by application_1_4.xsd and adds an
028: * optional alt-dd element defining a Geronimo specific deployment descriptor.
029: *
030: *
031: * <p>Java class for moduleType complex type.
032: *
033: * <p>The following schema fragment specifies the expected content contained within this class.
034: *
035: * <pre>
036: * <complexType name="moduleType">
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <choice>
041: * <element name="connector" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}pathType"/>
042: * <element name="ejb" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}pathType"/>
043: * <element name="java" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}pathType"/>
044: * <element name="web" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}pathType"/>
045: * </choice>
046: * <choice>
047: * <element name="alt-dd" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}pathType"/>
048: * <any/>
049: * </choice>
050: * </sequence>
051: * </restriction>
052: * </complexContent>
053: * </complexType>
054: * </pre>
055: *
056: *
057: */
058: @XmlAccessorType(XmlAccessType.FIELD)
059: @XmlType(name="moduleType",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2",propOrder={"connector","ejb","java","web","altDd","any"})
060: public class ModuleType {
061:
062: @XmlElement(name="connector",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
063: protected String connector;
064: @XmlElement(name="ejb",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
065: protected String ejb;
066: @XmlElement(name="java",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
067: protected String java;
068: @XmlElement(name="web",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
069: protected String web;
070: @XmlElement(name="alt-dd",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
071: protected String altDd;
072: @XmlAnyElement(lax=true)
073: protected Object any;
074:
075: /**
076: * Gets the value of the connector property.
077: *
078: * @return
079: * possible object is
080: * {@link String }
081: *
082: */
083: public String getConnector() {
084: return connector;
085: }
086:
087: /**
088: * Sets the value of the connector property.
089: *
090: * @param value
091: * allowed object is
092: * {@link String }
093: *
094: */
095: public void setConnector(String value) {
096: this .connector = value;
097: }
098:
099: /**
100: * Gets the value of the ejb property.
101: *
102: * @return
103: * possible object is
104: * {@link String }
105: *
106: */
107: public String getEjb() {
108: return ejb;
109: }
110:
111: /**
112: * Sets the value of the ejb property.
113: *
114: * @param value
115: * allowed object is
116: * {@link String }
117: *
118: */
119: public void setEjb(String value) {
120: this .ejb = value;
121: }
122:
123: /**
124: * Gets the value of the java property.
125: *
126: * @return
127: * possible object is
128: * {@link String }
129: *
130: */
131: public String getJava() {
132: return java;
133: }
134:
135: /**
136: * Sets the value of the java property.
137: *
138: * @param value
139: * allowed object is
140: * {@link String }
141: *
142: */
143: public void setJava(String value) {
144: this .java = value;
145: }
146:
147: /**
148: * Gets the value of the web property.
149: *
150: * @return
151: * possible object is
152: * {@link String }
153: *
154: */
155: public String getWeb() {
156: return web;
157: }
158:
159: /**
160: * Sets the value of the web property.
161: *
162: * @param value
163: * allowed object is
164: * {@link String }
165: *
166: */
167: public void setWeb(String value) {
168: this .web = value;
169: }
170:
171: /**
172: * Gets the value of the altDd property.
173: *
174: * @return
175: * possible object is
176: * {@link String }
177: *
178: */
179: public String getAltDd() {
180: return altDd;
181: }
182:
183: /**
184: * Sets the value of the altDd property.
185: *
186: * @param value
187: * allowed object is
188: * {@link String }
189: *
190: */
191: public void setAltDd(String value) {
192: this .altDd = value;
193: }
194:
195: /**
196: * Gets the value of the any property.
197: *
198: * @return
199: * possible object is
200: * {@link Object }
201: * {@link Element }
202: *
203: */
204: public Object getAny() {
205: return any;
206: }
207:
208: /**
209: * Sets the value of the any property.
210: *
211: * @param value
212: * allowed object is
213: * {@link Object }
214: * {@link Element }
215: *
216: */
217: public void setAny(Object value) {
218: this.any = value;
219: }
220:
221: }
|