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