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.XmlElement;
021: import javax.xml.bind.annotation.XmlType;
022:
023: /**
024: * <p>Java class for environmentType complex type.
025: *
026: * <p>The following schema fragment specifies the expected content contained within this class.
027: *
028: * <pre>
029: * <complexType name="environmentType">
030: * <complexContent>
031: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
032: * <sequence>
033: * <element name="moduleId" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}artifactType" minOccurs="0"/>
034: * <element name="dependencies" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}dependenciesType" minOccurs="0"/>
035: * <element name="hidden-classes" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}classFilterType" minOccurs="0"/>
036: * <element name="non-overridable-classes" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}classFilterType" minOccurs="0"/>
037: * <element name="inverse-classloading" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType" minOccurs="0"/>
038: * <element name="suppress-default-environment" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType" minOccurs="0"/>
039: * </sequence>
040: * </restriction>
041: * </complexContent>
042: * </complexType>
043: * </pre>
044: *
045: *
046: */
047: @XmlAccessorType(XmlAccessType.FIELD)
048: @XmlType(name="environmentType",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",propOrder={"moduleId","dependencies","hiddenClasses","nonOverridableClasses","inverseClassloading","suppressDefaultEnvironment"})
049: public class EnvironmentType {
050:
051: @XmlElement(name="moduleId",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
052: protected ArtifactType moduleId;
053: @XmlElement(name="dependencies",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
054: protected DependenciesType dependencies;
055: @XmlElement(name="hidden-classes",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
056: protected ClassFilterType hiddenClasses;
057: @XmlElement(name="non-overridable-classes",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
058: protected ClassFilterType nonOverridableClasses;
059: @XmlElement(name="inverse-classloading",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
060: protected EmptyType inverseClassloading;
061: @XmlElement(name="suppress-default-environment",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2")
062: protected EmptyType suppressDefaultEnvironment;
063:
064: /**
065: * Gets the value of the moduleId property.
066: *
067: * @return
068: * possible object is
069: * {@link ArtifactType }
070: *
071: */
072: public ArtifactType getModuleId() {
073: return moduleId;
074: }
075:
076: /**
077: * Sets the value of the moduleId property.
078: *
079: * @param value
080: * allowed object is
081: * {@link ArtifactType }
082: *
083: */
084: public void setModuleId(ArtifactType value) {
085: this .moduleId = value;
086: }
087:
088: /**
089: * Gets the value of the dependencies property.
090: *
091: * @return
092: * possible object is
093: * {@link DependenciesType }
094: *
095: */
096: public DependenciesType getDependencies() {
097: return dependencies;
098: }
099:
100: /**
101: * Sets the value of the dependencies property.
102: *
103: * @param value
104: * allowed object is
105: * {@link DependenciesType }
106: *
107: */
108: public void setDependencies(DependenciesType value) {
109: this .dependencies = value;
110: }
111:
112: /**
113: * Gets the value of the hiddenClasses property.
114: *
115: * @return
116: * possible object is
117: * {@link ClassFilterType }
118: *
119: */
120: public ClassFilterType getHiddenClasses() {
121: return hiddenClasses;
122: }
123:
124: /**
125: * Sets the value of the hiddenClasses property.
126: *
127: * @param value
128: * allowed object is
129: * {@link ClassFilterType }
130: *
131: */
132: public void setHiddenClasses(ClassFilterType value) {
133: this .hiddenClasses = value;
134: }
135:
136: /**
137: * Gets the value of the nonOverridableClasses property.
138: *
139: * @return
140: * possible object is
141: * {@link ClassFilterType }
142: *
143: */
144: public ClassFilterType getNonOverridableClasses() {
145: return nonOverridableClasses;
146: }
147:
148: /**
149: * Sets the value of the nonOverridableClasses property.
150: *
151: * @param value
152: * allowed object is
153: * {@link ClassFilterType }
154: *
155: */
156: public void setNonOverridableClasses(ClassFilterType value) {
157: this .nonOverridableClasses = value;
158: }
159:
160: /**
161: * Gets the value of the inverseClassloading property.
162: *
163: * @return
164: * possible object is
165: * {@link boolean }
166: *
167: */
168: public boolean isInverseClassloading() {
169: return inverseClassloading != null;
170: }
171:
172: /**
173: * Sets the value of the inverseClassloading property.
174: *
175: * @param value
176: * allowed object is
177: * {@link boolean }
178: *
179: */
180: public void setInverseClassloading(boolean value) {
181: this .inverseClassloading = value ? new EmptyType() : null;
182: }
183:
184: /**
185: * Gets the value of the suppressDefaultEnvironment property.
186: *
187: * @return
188: * possible object is
189: * {@link boolean }
190: *
191: */
192: public boolean isSuppressDefaultEnvironment() {
193: return suppressDefaultEnvironment != null;
194: }
195:
196: /**
197: * Sets the value of the suppressDefaultEnvironment property.
198: *
199: * @param value
200: * allowed object is
201: * {@link boolean }
202: *
203: */
204: public void setSuppressDefaultEnvironment(boolean value) {
205: this .suppressDefaultEnvironment = value ? new EmptyType()
206: : null;
207: }
208:
209: }
|