All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.openejb.jee.Application Maven / Gradle / Ivy

The newest version!
/**
 * 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;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * application_6.xsd
 * 

*

Java class for applicationType complex type. *

*

The following schema fragment specifies the expected content contained within this class. *

*

 * <complexType name="applicationType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="application-name" type="{http://java.sun.com/xml/ns/javaee}string" minOccurs="0"/>
 *         <group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
 *         <element name="initialize-in-order" type="{http://java.sun.com/xml/ns/javaee}generic-booleanType" minOccurs="0"/>
 *         <element name="module" type="{http://java.sun.com/xml/ns/javaee}moduleType" maxOccurs="unbounded"/>
 *         <element name="security-role" type="{http://java.sun.com/xml/ns/javaee}security-roleType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="library-directory" type="{http://java.sun.com/xml/ns/javaee}pathType" minOccurs="0"/>
 *         <element name="env-entry" type="{http://java.sun.com/xml/ns/javaee}env-entryType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="ejb-ref" type="{http://java.sun.com/xml/ns/javaee}ejb-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="ejb-local-ref" type="{http://java.sun.com/xml/ns/javaee}ejb-local-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <group ref="{http://java.sun.com/xml/ns/javaee}service-refGroup"/>
 *         <element name="resource-ref" type="{http://java.sun.com/xml/ns/javaee}resource-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="resource-env-ref" type="{http://java.sun.com/xml/ns/javaee}resource-env-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="message-destination-ref" type="{http://java.sun.com/xml/ns/javaee}message-destination-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="persistence-context-ref" type="{http://java.sun.com/xml/ns/javaee}persistence-context-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="persistence-unit-ref" type="{http://java.sun.com/xml/ns/javaee}persistence-unit-refType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="message-destination" type="{http://java.sun.com/xml/ns/javaee}message-destinationType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="data-source" type="{http://java.sun.com/xml/ns/javaee}data-sourceType" maxOccurs="unbounded" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="version" use="required" type="{http://java.sun.com/xml/ns/javaee}dewey-versionType" fixed="6" />
 *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlRootElement(name = "application") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "applicationType", propOrder = { "applicationName", "descriptions", "displayNames", "icon", "initializeInOrder", "module", "securityRole", "libraryDirectory", "envEntry", "ejbRef", "ejbLocalRef", "serviceRef", "resourceRef", "resourceEnvRef", "messageDestinationRef", "persistenceContextRef", "persistenceUnitRef", "messageDestination", "dataSource" }) public class Application implements JndiConsumer, NamedModule { @XmlElement(name = "application-name") protected String applicationName; @XmlTransient protected TextMap description = new TextMap(); @XmlTransient protected TextMap displayName = new TextMap(); @XmlElement(name = "icon", required = true) protected LocalCollection icon = new LocalCollection(); @XmlElement(name = "initialize-in-order") protected Boolean initializeInOrder; @XmlElement(required = true) protected List module; @XmlElement(name = "security-role") protected List securityRole; @XmlElement(name = "library-directory") protected String libraryDirectory; @XmlElement(name = "env-entry", required = true) protected KeyedCollection envEntry; @XmlElement(name = "ejb-ref", required = true) protected KeyedCollection ejbRef; @XmlElement(name = "ejb-local-ref", required = true) protected KeyedCollection ejbLocalRef; @XmlElement(name = "service-ref", required = true) protected KeyedCollection serviceRef; @XmlElement(name = "resource-ref", required = true) protected KeyedCollection resourceRef; @XmlElement(name = "resource-env-ref", required = true) protected KeyedCollection resourceEnvRef; @XmlElement(name = "message-destination-ref", required = true) protected KeyedCollection messageDestinationRef; @XmlElement(name = "persistence-context-ref", required = true) protected KeyedCollection persistenceContextRef; @XmlElement(name = "persistence-unit-ref", required = true) protected KeyedCollection persistenceUnitRef; @XmlElement(name = "message-destination", required = true) protected KeyedCollection messageDestination; @XmlElement(name = "data-source") protected KeyedCollection dataSource; @XmlAttribute(required = true) @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected java.lang.String version; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected java.lang.String id; public Application() { } public Application(final String applicationName) { this.applicationName = applicationName; } public String getApplicationName() { return applicationName; } public void setApplicationName(final String value) { this.applicationName = value; } @Override public String getModuleName() { return getApplicationName(); } @Override public void setModuleName(final String name) { setApplicationName(name); } @XmlElement(name = "description", required = true) public Text[] getDescriptions() { return description.toArray(); } public void setDescriptions(final Text[] text) { description.set(text); } public String getDescription() { return description.get(); } @XmlElement(name = "display-name", required = true) public Text[] getDisplayNames() { return displayName.toArray(); } public void setDisplayNames(final Text[] text) { displayName.set(text); } public String getDisplayName() { return displayName.get(); } public Collection getIcons() { if (icon == null) { icon = new LocalCollection(); } return icon; } public Map getIconMap() { if (icon == null) { icon = new LocalCollection(); } return icon.toMap(); } public Icon getIcon() { return icon.getLocal(); } public Boolean getInitializeInOrder() { return initializeInOrder; } public void setInitializeInOrder(final Boolean value) { this.initializeInOrder = value; } public List getModule() { if (module == null) { module = new ArrayList(); } return this.module; } public List getSecurityRole() { if (securityRole == null) { securityRole = new ArrayList(); } return this.securityRole; } public String getLibraryDirectory() { return libraryDirectory; } public void setLibraryDirectory(final String value) { this.libraryDirectory = value; } @Override public String getJndiConsumerName() { return applicationName; } public Collection getEnvEntry() { if (envEntry == null) { envEntry = new KeyedCollection(); } return this.envEntry; } public Map getEnvEntryMap() { if (envEntry == null) { envEntry = new KeyedCollection(); } return this.envEntry.toMap(); } public Collection getEjbRef() { if (ejbRef == null) { ejbRef = new KeyedCollection(); } return this.ejbRef; } public Map getEjbRefMap() { if (ejbRef == null) { ejbRef = new KeyedCollection(); } return this.ejbRef.toMap(); } public Collection getEjbLocalRef() { if (ejbLocalRef == null) { ejbLocalRef = new KeyedCollection(); } return this.ejbLocalRef; } public Map getEjbLocalRefMap() { if (ejbLocalRef == null) { ejbLocalRef = new KeyedCollection(); } return this.ejbLocalRef.toMap(); } public Collection getServiceRef() { if (serviceRef == null) { serviceRef = new KeyedCollection(); } return this.serviceRef; } public Map getServiceRefMap() { if (serviceRef == null) { serviceRef = new KeyedCollection(); } return this.serviceRef.toMap(); } public Collection getResourceRef() { if (resourceRef == null) { resourceRef = new KeyedCollection(); } return this.resourceRef; } public Map getResourceRefMap() { if (resourceRef == null) { resourceRef = new KeyedCollection(); } return this.resourceRef.toMap(); } public Collection getResourceEnvRef() { if (resourceEnvRef == null) { resourceEnvRef = new KeyedCollection(); } return this.resourceEnvRef; } public Map getResourceEnvRefMap() { if (resourceEnvRef == null) { resourceEnvRef = new KeyedCollection(); } return this.resourceEnvRef.toMap(); } public Collection getMessageDestinationRef() { if (messageDestinationRef == null) { messageDestinationRef = new KeyedCollection(); } return this.messageDestinationRef; } public Map getMessageDestinationRefMap() { if (messageDestinationRef == null) { messageDestinationRef = new KeyedCollection(); } return this.messageDestinationRef.toMap(); } public Collection getPersistenceContextRef() { if (persistenceContextRef == null) { persistenceContextRef = new KeyedCollection(); } return this.persistenceContextRef; } public Map getPersistenceContextRefMap() { if (persistenceContextRef == null) { persistenceContextRef = new KeyedCollection(); } return this.persistenceContextRef.toMap(); } public Collection getPersistenceUnitRef() { if (persistenceUnitRef == null) { persistenceUnitRef = new KeyedCollection(); } return this.persistenceUnitRef; } public Map getPersistenceUnitRefMap() { if (persistenceUnitRef == null) { persistenceUnitRef = new KeyedCollection(); } return this.persistenceUnitRef.toMap(); } public Collection getMessageDestination() { if (messageDestination == null) { messageDestination = new KeyedCollection(); } return this.messageDestination; } public Collection getDataSource() { if (dataSource == null) { dataSource = new KeyedCollection(); } return this.dataSource; } public Map getDataSourceMap() { if (dataSource == null) { dataSource = new KeyedCollection(); } return this.dataSource.toMap(); } public java.lang.String getVersion() { if (version == null) { return "6"; } else { return version; } } public void setVersion(final java.lang.String value) { this.version = value; } public java.lang.String getId() { return id; } public void setId(final java.lang.String value) { this.id = value; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy