/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.jee.oejb2; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for environmentType complex type. * <p/> * <p>The following schema fragment specifies the expected content contained within this class. * <p/> * <pre> * <complexType name="environmentType"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="moduleId" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}artifactType" minOccurs="0"/> * <element name="dependencies" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}dependenciesType" minOccurs="0"/> * <element name="bundle-activator" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="bundle-classPath" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="import-package" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="export-package" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="require-bundle" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="dynamic-import-package" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/> * <element name="hidden-classes" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}classFilterType" minOccurs="0"/> * <element name="non-overridable-classes" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}classFilterType" minOccurs="0"/> * <element name="private-classes" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}classFilterType" minOccurs="0"/> * <element name="inverse-classloading" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType" minOccurs="0"/> * <element name="suppress-default-environment" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}emptyType" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "environmentType", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2", propOrder = { "moduleId", "dependencies", "bundleActivator", "bundleClassPath", "importPackage", "exportPackage", "requireBundle", "dynamicImportPackage", "hiddenClasses", "nonOverridableClasses", "privateClasses", "inverseClassloading", "suppressDefaultEnvironment" }) public class EnvironmentType { @XmlElement(name = "moduleId", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected ArtifactType moduleId; @XmlElement(name = "dependencies", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected DependenciesType dependencies; @XmlElement(name = "bundle-activator", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected String bundleActivator; @XmlElement(name = "bundle-classPath", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected List<String> bundleClassPath; @XmlElement(name = "import-package", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected List<String> importPackage; @XmlElement(name = "export-package", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected List<String> exportPackage; @XmlElement(name = "require-bundle", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected List<String> requireBundle; @XmlElement(name = "dynamic-import-package", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected List<String> dynamicImportPackage; @XmlElement(name = "hidden-classes", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected ClassFilterType hiddenClasses; @XmlElement(name = "non-overridable-classes", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected ClassFilterType nonOverridableClasses; @XmlElement(name = "private-classes", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected ClassFilterType privateClasses; @XmlElement(name = "inverse-classloading", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected EmptyType inverseClassloading; @XmlElement(name = "suppress-default-environment", namespace = "http://geronimo.apache.org/xml/ns/deployment-1.2") protected EmptyType suppressDefaultEnvironment; /** * Gets the value of the moduleId property. * * @return possible object is * {@link ArtifactType } */ public ArtifactType getModuleId() { return moduleId; } /** * Sets the value of the moduleId property. * * @param value allowed object is * {@link ArtifactType } */ public void setModuleId(final ArtifactType value) { this.moduleId = value; } /** * Gets the value of the dependencies property. * * @return possible object is * {@link DependenciesType } */ public DependenciesType getDependencies() { return dependencies; } /** * Sets the value of the dependencies property. * * @param value allowed object is * {@link DependenciesType } */ public void setDependencies(final DependenciesType value) { this.dependencies = value; } /** * Gets the value of the bundleActivator property. * * @return possible object is * {@link String } */ public String getBundleActivator() { return bundleActivator; } /** * Sets the value of the bundleActivator property. * * @param value allowed object is * {@link String } */ public void setBundleActivator(final String value) { this.bundleActivator = value; } /** * Gets the value of the bundleClassPath property. * <p/> * <p/> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the bundleClassPath property. * <p/> * <p/> * For example, to add a new item, do as follows: * <pre> * getBundleClassPath().add(newItem); * </pre> * <p/> * <p/> * <p/> * Objects of the following type(s) are allowed in the list * {@link String } */ public List<String> getBundleClassPath() { if (bundleClassPath == null) { bundleClassPath = new ArrayList<String>(); } return this.bundleClassPath; } /** * Gets the value of the importPackage property. * <p/> * <p/> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the importPackage property. * <p/> * <p/> * For example, to add a new item, do as follows: * <pre> * getImportPackage().add(newItem); * </pre> * <p/> * <p/> * <p/> * Objects of the following type(s) are allowed in the list * {@link String } */ public List<String> getImportPackage() { if (importPackage == null) { importPackage = new ArrayList<String>(); } return this.importPackage; } /** * Gets the value of the exportPackage property. * <p/> * <p/> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the exportPackage property. * <p/> * <p/> * For example, to add a new item, do as follows: * <pre> * getExportPackage().add(newItem); * </pre> * <p/> * <p/> * <p/> * Objects of the following type(s) are allowed in the list * {@link String } */ public List<String> getExportPackage() { if (exportPackage == null) { exportPackage = new ArrayList<String>(); } return this.exportPackage; } /** * Gets the value of the requireBundle property. * <p/> * <p/> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the requireBundle property. * <p/> * <p/> * For example, to add a new item, do as follows: * <pre> * getRequireBundle().add(newItem); * </pre> * <p/> * <p/> * <p/> * Objects of the following type(s) are allowed in the list * {@link String } */ public List<String> getRequireBundle() { if (requireBundle == null) { requireBundle = new ArrayList<String>(); } return this.requireBundle; } /** * Gets the value of the dynamicImportPackage property. * <p/> * <p/> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the dynamicImportPackage property. * <p/> * <p/> * For example, to add a new item, do as follows: * <pre> * getDynamicImportPackage().add(newItem); * </pre> * <p/> * <p/> * <p/> * Objects of the following type(s) are allowed in the list * {@link String } */ public List<String> getDynamicImportPackage() { if (dynamicImportPackage == null) { dynamicImportPackage = new ArrayList<String>(); } return this.dynamicImportPackage; } /** * Gets the value of the hiddenClasses property. * * @return possible object is * {@link ClassFilterType } */ public ClassFilterType getHiddenClasses() { return hiddenClasses; } /** * Sets the value of the hiddenClasses property. * * @param value allowed object is * {@link ClassFilterType } */ public void setHiddenClasses(final ClassFilterType value) { this.hiddenClasses = value; } /** * Gets the value of the nonOverridableClasses property. * * @return possible object is * {@link ClassFilterType } */ public ClassFilterType getNonOverridableClasses() { return nonOverridableClasses; } /** * Sets the value of the nonOverridableClasses property. * * @param value allowed object is * {@link ClassFilterType } */ public void setNonOverridableClasses(final ClassFilterType value) { this.nonOverridableClasses = value; } /** * Gets the value of the privateClasses property. * * @return possible object is * {@link ClassFilterType } */ public ClassFilterType getPrivateClasses() { return privateClasses; } /** * Sets the value of the privateClasses property. * * @param value allowed object is * {@link ClassFilterType } */ public void setPrivateClasses(final ClassFilterType value) { this.privateClasses = value; } /** * Gets the value of the inverseClassloading property. * * @return possible object is * {@link boolean } */ public boolean isInverseClassloading() { return inverseClassloading != null; } /** * Sets the value of the inverseClassloading property. * * @param value allowed object is * {@link boolean } */ public void setInverseClassloading(final boolean value) { this.inverseClassloading = value ? new EmptyType() : null; } /** * Gets the value of the suppressDefaultEnvironment property. * * @return possible object is * {@link boolean } */ public boolean isSuppressDefaultEnvironment() { return suppressDefaultEnvironment != null; } /** * Sets the value of the suppressDefaultEnvironment property. * * @param value allowed object is * {@link boolean } */ public void setSuppressDefaultEnvironment(final boolean value) { this.suppressDefaultEnvironment = value ? new EmptyType() : null; } }