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 java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.JAXBElement;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElement;
025: import javax.xml.bind.annotation.XmlElementRef;
026: import javax.xml.bind.annotation.XmlType;
027:
028: /**
029: * <p>Java class for applicationType complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="applicationType">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.2}environment"/>
039: * <element name="module" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}moduleType" maxOccurs="unbounded" minOccurs="0"/>
040: * <element name="ext-module" type="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}ext-moduleType" maxOccurs="unbounded" minOccurs="0"/>
041: * <element ref="{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security" minOccurs="0"/>
042: * <element ref="{http://geronimo.apache.org/xml/ns/deployment-1.2}service" maxOccurs="unbounded" minOccurs="0"/>
043: * </sequence>
044: * <attribute name="application-name" type="{http://www.w3.org/2001/XMLSchema}string" />
045: * </restriction>
046: * </complexContent>
047: * </complexType>
048: * </pre>
049: *
050: *
051: */
052: @XmlAccessorType(XmlAccessType.FIELD)
053: @XmlType(name="applicationType",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2",propOrder={"environment","module","extModule","security","service"})
054: public class ApplicationType {
055:
056: @XmlElement(name="environment",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",required=true)
057: protected EnvironmentType environment;
058: @XmlElement(name="module",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
059: protected List<ModuleType> module;
060: @XmlElement(name="ext-module",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
061: protected List<ExtModuleType> extModule;
062: @XmlElement(name="security",namespace="http://geronimo.apache.org/xml/ns/j2ee/application-1.2")
063: protected AbstractSecurityType security;
064: @XmlElementRef(name="service",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class)
065: protected List<JAXBElement<? extends AbstractServiceType>> service;
066: @XmlAttribute(name="application-name")
067: protected String applicationName;
068:
069: /**
070: * Gets the value of the environment property.
071: *
072: * @return
073: * possible object is
074: * {@link EnvironmentType }
075: *
076: */
077: public EnvironmentType getEnvironment() {
078: return environment;
079: }
080:
081: /**
082: * Sets the value of the environment property.
083: *
084: * @param value
085: * allowed object is
086: * {@link EnvironmentType }
087: *
088: */
089: public void setEnvironment(EnvironmentType value) {
090: this .environment = value;
091: }
092:
093: /**
094: * Gets the value of the module property.
095: *
096: * <p>
097: * This accessor method returns a reference to the live list,
098: * not a snapshot. Therefore any modification you make to the
099: * returned list will be present inside the JAXB object.
100: * This is why there is not a <CODE>set</CODE> method for the module property.
101: *
102: * <p>
103: * For example, to add a new item, do as follows:
104: * <pre>
105: * getModule().add(newItem);
106: * </pre>
107: *
108: *
109: * <p>
110: * Objects of the following type(s) are allowed in the list
111: * {@link ModuleType }
112: *
113: *
114: */
115: public List<ModuleType> getModule() {
116: if (module == null) {
117: module = new ArrayList<ModuleType>();
118: }
119: return this .module;
120: }
121:
122: /**
123: * Gets the value of the extModule property.
124: *
125: * <p>
126: * This accessor method returns a reference to the live list,
127: * not a snapshot. Therefore any modification you make to the
128: * returned list will be present inside the JAXB object.
129: * This is why there is not a <CODE>set</CODE> method for the extModule property.
130: *
131: * <p>
132: * For example, to add a new item, do as follows:
133: * <pre>
134: * getExtModule().add(newItem);
135: * </pre>
136: *
137: *
138: * <p>
139: * Objects of the following type(s) are allowed in the list
140: * {@link ExtModuleType }
141: *
142: *
143: */
144: public List<ExtModuleType> getExtModule() {
145: if (extModule == null) {
146: extModule = new ArrayList<ExtModuleType>();
147: }
148: return this .extModule;
149: }
150:
151: /**
152: * Gets the value of the security property.
153: *
154: * @return
155: * possible object is
156: * {@link AbstractSecurityType }
157: *
158: */
159: public AbstractSecurityType getSecurity() {
160: return security;
161: }
162:
163: /**
164: * Sets the value of the security property.
165: *
166: * @param value
167: * allowed object is
168: * {@link AbstractSecurityType }
169: *
170: */
171: public void setSecurity(AbstractSecurityType value) {
172: this .security = value;
173: }
174:
175: /**
176: * Gets the value of the service property.
177: *
178: * <p>
179: * This accessor method returns a reference to the live list,
180: * not a snapshot. Therefore any modification you make to the
181: * returned list will be present inside the JAXB object.
182: * This is why there is not a <CODE>set</CODE> method for the service property.
183: *
184: * <p>
185: * For example, to add a new item, do as follows:
186: * <pre>
187: * getService().add(newItem);
188: * </pre>
189: *
190: *
191: * <p>
192: * Objects of the following type(s) are allowed in the list
193: * {@link JAXBElement }{@code <}{@link GbeanType }{@code >}
194: * {@link JAXBElement }{@code <}{@link AbstractServiceType }{@code >}
195: *
196: *
197: */
198: public List<JAXBElement<? extends AbstractServiceType>> getService() {
199: if (service == null) {
200: service = new ArrayList<JAXBElement<? extends AbstractServiceType>>();
201: }
202: return this .service;
203: }
204:
205: /**
206: * Gets the value of the applicationName property.
207: *
208: * @return
209: * possible object is
210: * {@link String }
211: *
212: */
213: public String getApplicationName() {
214: return applicationName;
215: }
216:
217: /**
218: * Sets the value of the applicationName property.
219: *
220: * @param value
221: * allowed object is
222: * {@link String }
223: *
224: */
225: public void setApplicationName(String value) {
226: this.applicationName = value;
227: }
228:
229: }
|