http://git-wip-us.apache.org/repos/asf/tomee/blob/52567075/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Listener.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Listener.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Listener.java index 2d00600..ae510c7 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Listener.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Listener.java @@ -1,111 +1,111 @@ -/** - * 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.was.v6.common; - -import org.apache.openejb.jee.was.v6.java.JavaClass; - -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.XmlType; -import java.util.ArrayList; -import java.util.List; - -/** - * @since J2EE1.4 moved from webapp - * <p/> - * Declares a class in the application must be registered as a web - * application listener bean. - * <p/> - * <p/> - * <p/> - * Java class for Listener complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained - * within this class. - * <p/> - * <pre> - * <complexType name="Listener"> - * <complexContent> - * <extension base="{common.xmi}CompatibilityDescriptionGroup"> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="listenerClass" type="{java.xmi}JavaClass"/> - * </choice> - * <attribute name="listenerClass" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </extension> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Listener", propOrder = {"listenerClasses"}) -public class Listener extends CompatibilityDescriptionGroup { - - @XmlElement(name = "listenerClass") - protected List<JavaClass> listenerClasses; - @XmlAttribute(name = "listenerClass") - protected String listenerClassString; - - /** - * Gets the value of the listenerClasses 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 listenerClasses property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getListenerClasses().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link JavaClass } - */ - public List<JavaClass> getListenerClasses() { - if (listenerClasses == null) { - listenerClasses = new ArrayList<JavaClass>(); - } - return this.listenerClasses; - } - - /** - * Gets the value of the listenerClassString property. - * - * @return possible object is {@link String } - */ - public String getListenerClassString() { - return listenerClassString; - } - - /** - * Sets the value of the listenerClassString property. - * - * @param value allowed object is {@link String } - */ - public void setListenerClassString(final String value) { - this.listenerClassString = value; - } - -} +/** + * 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.was.v6.common; + +import org.apache.openejb.jee.was.v6.java.JavaClass; + +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.XmlType; +import java.util.ArrayList; +import java.util.List; + +/** + * @since J2EE1.4 moved from webapp + * <p/> + * Declares a class in the application must be registered as a web + * application listener bean. + * <p/> + * <p/> + * <p/> + * Java class for Listener complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained + * within this class. + * <p/> + * <pre> + * <complexType name="Listener"> + * <complexContent> + * <extension base="{common.xmi}CompatibilityDescriptionGroup"> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="listenerClass" type="{java.xmi}JavaClass"/> + * </choice> + * <attribute name="listenerClass" type="{http://www.w3.org/2001/XMLSchema}string" /> + * </extension> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Listener", propOrder = {"listenerClasses"}) +public class Listener extends CompatibilityDescriptionGroup { + + @XmlElement(name = "listenerClass") + protected List<JavaClass> listenerClasses; + @XmlAttribute(name = "listenerClass") + protected String listenerClassString; + + /** + * Gets the value of the listenerClasses 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 listenerClasses property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getListenerClasses().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link JavaClass } + */ + public List<JavaClass> getListenerClasses() { + if (listenerClasses == null) { + listenerClasses = new ArrayList<JavaClass>(); + } + return this.listenerClasses; + } + + /** + * Gets the value of the listenerClassString property. + * + * @return possible object is {@link String } + */ + public String getListenerClassString() { + return listenerClassString; + } + + /** + * Sets the value of the listenerClassString property. + * + * @param value allowed object is {@link String } + */ + public void setListenerClassString(final String value) { + this.listenerClassString = value; + } + +}
http://git-wip-us.apache.org/repos/asf/tomee/blob/52567075/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestination.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestination.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestination.java index 8f512cb..89efbab 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestination.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestination.java @@ -1,92 +1,92 @@ -/** - * 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.was.v6.common; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - -/** - * @since J2EE1.4 The message-destinationType specifies a message destination. - * The logical destination described by this element is mapped to a - * physical destination by the Deployer. - * <p/> - * The message destination element contains: - * <p/> - * - an optional description - an optional display-name - an optional - * icon - a message destination name which must be unique among message - * destination names within the same Deployment File. - * <p/> - * Example: - * <p/> - * <p/> - * <pre> - * <?xml version="1.0" encoding="UTF-8"?><message-destination xmlns:com.ibm.etools.j2ee.common="common.xmi" xmlns:com.ibm.etools.webservice.wsclient="webservice_client.xmi" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:org.eclipse.jem.java="java.xmi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><message-destination-name> - * - * CorporateStocks - * - * </message-destination-name> - * - * </message-destination> - * </pre> - * <p/> - * <p/> - * <p/> - * <p/> - * Java class for MessageDestination complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained - * within this class. - * <p/> - * <pre> - * <complexType name="MessageDestination"> - * <complexContent> - * <extension base="{common.xmi}CompatibilityDescriptionGroup"> - * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </extension> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageDestination") -public class MessageDestination extends CompatibilityDescriptionGroup { - - @XmlAttribute - protected String name; - - /** - * Gets the value of the name property. - * - * @return possible object is {@link String } - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value allowed object is {@link String } - */ - public void setName(final String value) { - this.name = value; - } - -} +/** + * 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.was.v6.common; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + +/** + * @since J2EE1.4 The message-destinationType specifies a message destination. + * The logical destination described by this element is mapped to a + * physical destination by the Deployer. + * <p/> + * The message destination element contains: + * <p/> + * - an optional description - an optional display-name - an optional + * icon - a message destination name which must be unique among message + * destination names within the same Deployment File. + * <p/> + * Example: + * <p/> + * <p/> + * <pre> + * <?xml version="1.0" encoding="UTF-8"?><message-destination xmlns:com.ibm.etools.j2ee.common="common.xmi" xmlns:com.ibm.etools.webservice.wsclient="webservice_client.xmi" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:org.eclipse.jem.java="java.xmi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><message-destination-name> + * + * CorporateStocks + * + * </message-destination-name> + * + * </message-destination> + * </pre> + * <p/> + * <p/> + * <p/> + * <p/> + * Java class for MessageDestination complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained + * within this class. + * <p/> + * <pre> + * <complexType name="MessageDestination"> + * <complexContent> + * <extension base="{common.xmi}CompatibilityDescriptionGroup"> + * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> + * </extension> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MessageDestination") +public class MessageDestination extends CompatibilityDescriptionGroup { + + @XmlAttribute + protected String name; + + /** + * Gets the value of the name property. + * + * @return possible object is {@link String } + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value allowed object is {@link String } + */ + public void setName(final String value) { + this.name = value; + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/52567075/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationRef.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationRef.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationRef.java index 28f86d1..b56f4dd 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationRef.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationRef.java @@ -1,393 +1,393 @@ -/** - * 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.was.v6.common; - -import org.apache.openejb.jee.was.v6.xmi.Extension; - -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.XmlIDREF; -import javax.xml.bind.annotation.XmlType; -import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; -import javax.xml.namespace.QName; -import java.util.ArrayList; -import java.util.List; - -/** - * @since J2EE1.4 The message-destination-ref element contains a declaration of - * Deployment Component's reference to a message destination associated - * with a resource in Deployment Component's environment. It consists of: - * <p/> - * - an optional description - the message destination reference name - - * the message destination type - a specification as to whether the - * destination is used for consuming or producing messages, or both - a - * link to the message destination - * <p/> - * Examples: - * <p/> - * <p/> - * <pre> - * <?xml version="1.0" encoding="UTF-8"?><message-destination-ref xmlns:com.ibm.etools.j2ee.common="common.xmi" xmlns:com.ibm.etools.webservice.wsclient="webservice_client.xmi" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:org.eclipse.jem.java="java.xmi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><message-destination-ref-name> - * - * jms/StockQueue - * - * </message-destination-ref-name><message-destination-type> - * - * javax.jms.Queue - * - * </message-destination-type><message-destination-usage> - * - * Consumes - * - * </message-destination-usage><message-destination-link> - * - * CorporateStocks - * - * </message-destination-link> - * - * </message-destination-ref> - * </pre> - * <p/> - * <p/> - * <p/> - * <p/> - * Java class for MessageDestinationRef complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained - * within this class. - * <p/> - * <pre> - * <complexType name="MessageDestinationRef"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="descriptions" type="{common.xmi}Description"/> - * </choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element ref="{http://www.omg.org/XMI}Extension"/> - * </choice> - * </choice> - * <attGroup ref="{http://www.omg.org/XMI}ObjectAttribs"/> - * <attribute name="link" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="usage" type="{common.xmi}MessageDestinationUsageType" /> - * <attribute ref="{http://www.omg.org/XMI}id"/> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "MessageDestinationRef", propOrder = {"descriptions", - "extensions"}) -public class MessageDestinationRef { - - protected List<Description> descriptions; - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @XmlAttribute - protected String link; - @XmlAttribute - protected String name; - @XmlAttribute(name = "type") - protected String messageDestinationRefTypeString; - @XmlAttribute - protected MessageDestinationUsageEnum usage; - @XmlAttribute(namespace = "http://www.omg.org/XMI") - @XmlJavaTypeAdapter(CollapsedStringAdapter.class) - @XmlID - protected String id; - @XmlAttribute(namespace = "http://www.omg.org/XMI") - protected QName type; - @XmlAttribute(namespace = "http://www.omg.org/XMI") - protected String version; - @XmlAttribute - protected String href; - @XmlAttribute(namespace = "http://www.omg.org/XMI") - @XmlIDREF - protected Object idref; - @XmlAttribute(namespace = "http://www.omg.org/XMI") - protected String label; - @XmlAttribute(namespace = "http://www.omg.org/XMI") - protected String uuid; - - /** - * Gets the value of the descriptions 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 descriptions property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getDescriptions().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link Description } - */ - public List<Description> getDescriptions() { - if (descriptions == null) { - descriptions = new ArrayList<Description>(); - } - return this.descriptions; - } - - /** - * Gets the value of the extensions 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 extensions property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getExtensions().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link Extension } - */ - public List<Extension> getExtensions() { - if (extensions == null) { - extensions = new ArrayList<Extension>(); - } - return this.extensions; - } - - /** - * Gets the value of the link property. - * - * @return possible object is {@link String } - */ - public String getLink() { - return link; - } - - /** - * Sets the value of the link property. - * - * @param value allowed object is {@link String } - */ - public void setLink(final String value) { - this.link = value; - } - - /** - * Gets the value of the name property. - * - * @return possible object is {@link String } - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value allowed object is {@link String } - */ - public void setName(final String value) { - this.name = value; - } - - /** - * Gets the value of the messageDestinationRefTypeString property. - * - * @return possible object is {@link String } - */ - public String getMessageDestinationRefTypeString() { - return messageDestinationRefTypeString; - } - - /** - * Sets the value of the messageDestinationRefTypeString property. - * - * @param value allowed object is {@link String } - */ - public void setMessageDestinationRefTypeString(final String value) { - this.messageDestinationRefTypeString = value; - } - - /** - * Gets the value of the usage property. - * - * @return possible object is {@link MessageDestinationUsageEnum } - */ - public MessageDestinationUsageEnum getUsage() { - return usage; - } - - /** - * Sets the value of the usage property. - * - * @param value allowed object is {@link MessageDestinationUsageEnum } - */ - public void setUsage(final MessageDestinationUsageEnum value) { - this.usage = value; - } - - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value allowed object is {@link String } - */ - public void setId(final String value) { - this.id = value; - } - - /** - * Gets the value of the type property. - * - * @return possible object is {@link QName } - */ - public QName getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value allowed object is {@link QName } - */ - public void setType(final QName value) { - this.type = value; - } - - /** - * Gets the value of the version property. - * - * @return possible object is {@link String } - */ - public String getVersion() { - if (version == null) { - return "2.0"; - } else { - return version; - } - } - - /** - * Sets the value of the version property. - * - * @param value allowed object is {@link String } - */ - public void setVersion(final String value) { - this.version = value; - } - - /** - * Gets the value of the href property. - * - * @return possible object is {@link String } - */ - public String getHref() { - return href; - } - - /** - * Sets the value of the href property. - * - * @param value allowed object is {@link String } - */ - public void setHref(final String value) { - this.href = value; - } - - /** - * Gets the value of the idref property. - * - * @return possible object is {@link Object } - */ - public Object getIdref() { - return idref; - } - - /** - * Sets the value of the idref property. - * - * @param value allowed object is {@link Object } - */ - public void setIdref(final Object value) { - this.idref = value; - } - - /** - * Gets the value of the label property. - * - * @return possible object is {@link String } - */ - public String getLabel() { - return label; - } - - /** - * Sets the value of the label property. - * - * @param value allowed object is {@link String } - */ - public void setLabel(final String value) { - this.label = value; - } - - /** - * Gets the value of the uuid property. - * - * @return possible object is {@link String } - */ - public String getUuid() { - return uuid; - } - - /** - * Sets the value of the uuid property. - * - * @param value allowed object is {@link String } - */ - public void setUuid(final String value) { - this.uuid = value; - } - -} +/** + * 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.was.v6.common; + +import org.apache.openejb.jee.was.v6.xmi.Extension; + +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.XmlIDREF; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import javax.xml.namespace.QName; +import java.util.ArrayList; +import java.util.List; + +/** + * @since J2EE1.4 The message-destination-ref element contains a declaration of + * Deployment Component's reference to a message destination associated + * with a resource in Deployment Component's environment. It consists of: + * <p/> + * - an optional description - the message destination reference name - + * the message destination type - a specification as to whether the + * destination is used for consuming or producing messages, or both - a + * link to the message destination + * <p/> + * Examples: + * <p/> + * <p/> + * <pre> + * <?xml version="1.0" encoding="UTF-8"?><message-destination-ref xmlns:com.ibm.etools.j2ee.common="common.xmi" xmlns:com.ibm.etools.webservice.wsclient="webservice_client.xmi" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:org.eclipse.jem.java="java.xmi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><message-destination-ref-name> + * + * jms/StockQueue + * + * </message-destination-ref-name><message-destination-type> + * + * javax.jms.Queue + * + * </message-destination-type><message-destination-usage> + * + * Consumes + * + * </message-destination-usage><message-destination-link> + * + * CorporateStocks + * + * </message-destination-link> + * + * </message-destination-ref> + * </pre> + * <p/> + * <p/> + * <p/> + * <p/> + * Java class for MessageDestinationRef complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained + * within this class. + * <p/> + * <pre> + * <complexType name="MessageDestinationRef"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="descriptions" type="{common.xmi}Description"/> + * </choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element ref="{http://www.omg.org/XMI}Extension"/> + * </choice> + * </choice> + * <attGroup ref="{http://www.omg.org/XMI}ObjectAttribs"/> + * <attribute name="link" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="usage" type="{common.xmi}MessageDestinationUsageType" /> + * <attribute ref="{http://www.omg.org/XMI}id"/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "MessageDestinationRef", propOrder = {"descriptions", + "extensions"}) +public class MessageDestinationRef { + + protected List<Description> descriptions; + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @XmlAttribute + protected String link; + @XmlAttribute + protected String name; + @XmlAttribute(name = "type") + protected String messageDestinationRefTypeString; + @XmlAttribute + protected MessageDestinationUsageEnum usage; + @XmlAttribute(namespace = "http://www.omg.org/XMI") + @XmlJavaTypeAdapter(CollapsedStringAdapter.class) + @XmlID + protected String id; + @XmlAttribute(namespace = "http://www.omg.org/XMI") + protected QName type; + @XmlAttribute(namespace = "http://www.omg.org/XMI") + protected String version; + @XmlAttribute + protected String href; + @XmlAttribute(namespace = "http://www.omg.org/XMI") + @XmlIDREF + protected Object idref; + @XmlAttribute(namespace = "http://www.omg.org/XMI") + protected String label; + @XmlAttribute(namespace = "http://www.omg.org/XMI") + protected String uuid; + + /** + * Gets the value of the descriptions 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 descriptions property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getDescriptions().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link Description } + */ + public List<Description> getDescriptions() { + if (descriptions == null) { + descriptions = new ArrayList<Description>(); + } + return this.descriptions; + } + + /** + * Gets the value of the extensions 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 extensions property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getExtensions().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link Extension } + */ + public List<Extension> getExtensions() { + if (extensions == null) { + extensions = new ArrayList<Extension>(); + } + return this.extensions; + } + + /** + * Gets the value of the link property. + * + * @return possible object is {@link String } + */ + public String getLink() { + return link; + } + + /** + * Sets the value of the link property. + * + * @param value allowed object is {@link String } + */ + public void setLink(final String value) { + this.link = value; + } + + /** + * Gets the value of the name property. + * + * @return possible object is {@link String } + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value allowed object is {@link String } + */ + public void setName(final String value) { + this.name = value; + } + + /** + * Gets the value of the messageDestinationRefTypeString property. + * + * @return possible object is {@link String } + */ + public String getMessageDestinationRefTypeString() { + return messageDestinationRefTypeString; + } + + /** + * Sets the value of the messageDestinationRefTypeString property. + * + * @param value allowed object is {@link String } + */ + public void setMessageDestinationRefTypeString(final String value) { + this.messageDestinationRefTypeString = value; + } + + /** + * Gets the value of the usage property. + * + * @return possible object is {@link MessageDestinationUsageEnum } + */ + public MessageDestinationUsageEnum getUsage() { + return usage; + } + + /** + * Sets the value of the usage property. + * + * @param value allowed object is {@link MessageDestinationUsageEnum } + */ + public void setUsage(final MessageDestinationUsageEnum value) { + this.usage = value; + } + + /** + * Gets the value of the id property. + * + * @return possible object is {@link String } + */ + public String getId() { + return id; + } + + /** + * Sets the value of the id property. + * + * @param value allowed object is {@link String } + */ + public void setId(final String value) { + this.id = value; + } + + /** + * Gets the value of the type property. + * + * @return possible object is {@link QName } + */ + public QName getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value allowed object is {@link QName } + */ + public void setType(final QName value) { + this.type = value; + } + + /** + * Gets the value of the version property. + * + * @return possible object is {@link String } + */ + public String getVersion() { + if (version == null) { + return "2.0"; + } else { + return version; + } + } + + /** + * Sets the value of the version property. + * + * @param value allowed object is {@link String } + */ + public void setVersion(final String value) { + this.version = value; + } + + /** + * Gets the value of the href property. + * + * @return possible object is {@link String } + */ + public String getHref() { + return href; + } + + /** + * Sets the value of the href property. + * + * @param value allowed object is {@link String } + */ + public void setHref(final String value) { + this.href = value; + } + + /** + * Gets the value of the idref property. + * + * @return possible object is {@link Object } + */ + public Object getIdref() { + return idref; + } + + /** + * Sets the value of the idref property. + * + * @param value allowed object is {@link Object } + */ + public void setIdref(final Object value) { + this.idref = value; + } + + /** + * Gets the value of the label property. + * + * @return possible object is {@link String } + */ + public String getLabel() { + return label; + } + + /** + * Sets the value of the label property. + * + * @param value allowed object is {@link String } + */ + public void setLabel(final String value) { + this.label = value; + } + + /** + * Gets the value of the uuid property. + * + * @return possible object is {@link String } + */ + public String getUuid() { + return uuid; + } + + /** + * Sets the value of the uuid property. + * + * @param value allowed object is {@link String } + */ + public void setUuid(final String value) { + this.uuid = value; + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/52567075/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationUsageEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationUsageEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationUsageEnum.java index d94e3ab..ac24dc4 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationUsageEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/MessageDestinationUsageEnum.java @@ -1,68 +1,68 @@ -/** - * 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.was.v6.common; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for MessageDestinationUsageType. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="MessageDestinationUsageType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="Consumes"/> - * <enumeration value="Produces"/> - * <enumeration value="ConsumesProduces"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum MessageDestinationUsageEnum { - - @XmlEnumValue("Consumes") - CONSUMES("Consumes"), @XmlEnumValue("Produces") - PRODUCES("Produces"), @XmlEnumValue("ConsumesProduces") - CONSUMES_PRODUCES("ConsumesProduces"); - private final String value; - - MessageDestinationUsageEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static MessageDestinationUsageEnum fromValue(final String v) { - for (final MessageDestinationUsageEnum c : MessageDestinationUsageEnum - .values()) { - if (c.value.equals(v)) { - return c; - } - } - throw new IllegalArgumentException(v.toString()); - } - -} +/** + * 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.was.v6.common; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for MessageDestinationUsageType. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="MessageDestinationUsageType"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="Consumes"/> + * <enumeration value="Produces"/> + * <enumeration value="ConsumesProduces"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum MessageDestinationUsageEnum { + + @XmlEnumValue("Consumes") + CONSUMES("Consumes"), @XmlEnumValue("Produces") + PRODUCES("Produces"), @XmlEnumValue("ConsumesProduces") + CONSUMES_PRODUCES("ConsumesProduces"); + private final String value; + + MessageDestinationUsageEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static MessageDestinationUsageEnum fromValue(final String v) { + for (final MessageDestinationUsageEnum c : MessageDestinationUsageEnum + .values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/52567075/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/ObjectFactory.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/ObjectFactory.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/ObjectFactory.java index 2e0c6b1..fe362b4 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/ObjectFactory.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/ObjectFactory.java @@ -1,475 +1,475 @@ -/** - * 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.was.v6.common; - -import javax.xml.bind.JAXBElement; -import javax.xml.bind.annotation.XmlElementDecl; -import javax.xml.bind.annotation.XmlRegistry; - -/** - * This object contains factory methods for each Java content interface and Java - * element interface generated in the org.apache.openejb.jee.was.v6.common - * package. - * <p/> - * An ObjectFactory allows you to programatically construct new instances of the - * Java representation for XML content. The Java representation of XML content - * can consist of schema derived interfaces and classes representing the binding - * of schema type definitions, element declarations and model groups. Factory - * methods for each of these are provided in this class. - */ -@XmlRegistry -public class ObjectFactory { - - private final static javax.xml.namespace.QName _QName_QNAME = new javax.xml.namespace.QName( - "common.xmi", "QName"); - private final static javax.xml.namespace.QName _Listener_QNAME = new javax.xml.namespace.QName( - "common.xmi", "Listener"); - private final static javax.xml.namespace.QName _SecurityRoleRef_QNAME = new javax.xml.namespace.QName( - "common.xmi", "SecurityRoleRef"); - private final static javax.xml.namespace.QName _Identity_QNAME = new javax.xml.namespace.QName( - "common.xmi", "Identity"); - private final static javax.xml.namespace.QName _Description_QNAME = new javax.xml.namespace.QName( - "common.xmi", "Description"); - private final static javax.xml.namespace.QName _EnvEntry_QNAME = new javax.xml.namespace.QName( - "common.xmi", "EnvEntry"); - private final static javax.xml.namespace.QName _DisplayName_QNAME = new javax.xml.namespace.QName( - "common.xmi", "DisplayName"); - private final static javax.xml.namespace.QName _ResourceEnvRef_QNAME = new javax.xml.namespace.QName( - "common.xmi", "ResourceEnvRef"); - private final static javax.xml.namespace.QName _DescriptionGroup_QNAME = new javax.xml.namespace.QName( - "common.xmi", "DescriptionGroup"); - private final static javax.xml.namespace.QName _SecurityIdentity_QNAME = new javax.xml.namespace.QName( - "common.xmi", "SecurityIdentity"); - private final static javax.xml.namespace.QName _RunAsSpecifiedIdentity_QNAME = new javax.xml.namespace.QName( - "common.xmi", "RunAsSpecifiedIdentity"); - private final static javax.xml.namespace.QName _IconType_QNAME = new javax.xml.namespace.QName( - "common.xmi", "IconType"); - private final static javax.xml.namespace.QName _UseCallerIdentity_QNAME = new javax.xml.namespace.QName( - "common.xmi", "UseCallerIdentity"); - private final static javax.xml.namespace.QName _MessageDestination_QNAME = new javax.xml.namespace.QName( - "common.xmi", "MessageDestination"); - private final static javax.xml.namespace.QName _MessageDestinationRef_QNAME = new javax.xml.namespace.QName( - "common.xmi", "MessageDestinationRef"); - private final static javax.xml.namespace.QName _CompatibilityDescriptionGroup_QNAME = new javax.xml.namespace.QName( - "common.xmi", "CompatibilityDescriptionGroup"); - private final static javax.xml.namespace.QName _ResourceRef_QNAME = new javax.xml.namespace.QName( - "common.xmi", "ResourceRef"); - private final static javax.xml.namespace.QName _ParamValue_QNAME = new javax.xml.namespace.QName( - "common.xmi", "ParamValue"); - private final static javax.xml.namespace.QName _EjbRef_QNAME = new javax.xml.namespace.QName( - "common.xmi", "EjbRef"); - private final static javax.xml.namespace.QName _EJBLocalRef_QNAME = new javax.xml.namespace.QName( - "common.xmi", "EJBLocalRef"); - private final static javax.xml.namespace.QName _SecurityRole_QNAME = new javax.xml.namespace.QName( - "common.xmi", "SecurityRole"); - private final static javax.xml.namespace.QName _JNDIEnvRefsGroup_QNAME = new javax.xml.namespace.QName( - "common.xmi", "JNDIEnvRefsGroup"); - - /** - * Create a new ObjectFactory that can be used to create new instances of - * schema derived classes for package: org.apache.openejb.jee.was.v6.common - */ - public ObjectFactory() { - } - - /** - * Create an instance of {@link EJBLocalRef } - */ - public EJBLocalRef createEJBLocalRef() { - return new EJBLocalRef(); - } - - /** - * Create an instance of {@link SecurityRole } - */ - public SecurityRole createSecurityRole() { - return new SecurityRole(); - } - - /** - * Create an instance of {@link ResourceRef } - */ - public ResourceRef createResourceRef() { - return new ResourceRef(); - } - - /** - * Create an instance of {@link ResourceEnvRef } - */ - public ResourceEnvRef createResourceEnvRef() { - return new ResourceEnvRef(); - } - - /** - * Create an instance of {@link ParamValue } - */ - public ParamValue createParamValue() { - return new ParamValue(); - } - - /** - * Create an instance of {@link DisplayName } - */ - public DisplayName createDisplayName() { - return new DisplayName(); - } - - /** - * Create an instance of {@link CompatibilityDescriptionGroup } - */ - public CompatibilityDescriptionGroup createCompatibilityDescriptionGroup() { - return new CompatibilityDescriptionGroup(); - } - - /** - * Create an instance of {@link Identity } - */ - public Identity createIdentity() { - return new Identity(); - } - - /** - * Create an instance of {@link SecurityRoleRef } - */ - public SecurityRoleRef createSecurityRoleRef() { - return new SecurityRoleRef(); - } - - /** - * Create an instance of {@link IconType } - */ - public IconType createIconType() { - return new IconType(); - } - - /** - * Create an instance of {@link SecurityIdentity } - */ - public SecurityIdentity createSecurityIdentity() { - return new SecurityIdentity(); - } - - /** - * Create an instance of {@link UseCallerIdentity } - */ - public UseCallerIdentity createUseCallerIdentity() { - return new UseCallerIdentity(); - } - - /** - * Create an instance of {@link MessageDestinationRef } - */ - public MessageDestinationRef createMessageDestinationRef() { - return new MessageDestinationRef(); - } - - /** - * Create an instance of {@link org.apache.openejb.jee.was.v6.common.QName } - */ - public org.apache.openejb.jee.was.v6.common.QName createQName() { - return new org.apache.openejb.jee.was.v6.common.QName(); - } - - /** - * Create an instance of {@link MessageDestination } - */ - public MessageDestination createMessageDestination() { - return new MessageDestination(); - } - - /** - * Create an instance of {@link EjbRef } - */ - public EjbRef createEjbRef() { - return new EjbRef(); - } - - /** - * Create an instance of {@link Description } - */ - public Description createDescription() { - return new Description(); - } - - /** - * Create an instance of {@link JNDIEnvRefsGroup } - */ - public JNDIEnvRefsGroup createJNDIEnvRefsGroup() { - return new JNDIEnvRefsGroup(); - } - - /** - * Create an instance of {@link EnvEntry } - */ - public EnvEntry createEnvEntry() { - return new EnvEntry(); - } - - /** - * Create an instance of {@link RunAsSpecifiedIdentity } - */ - public RunAsSpecifiedIdentity createRunAsSpecifiedIdentity() { - return new RunAsSpecifiedIdentity(); - } - - /** - * Create an instance of {@link Listener } - */ - public Listener createListener() { - return new Listener(); - } - - /** - * Create an instance of {@link DescriptionGroup } - */ - public DescriptionGroup createDescriptionGroup() { - return new DescriptionGroup(); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link org.apache.openejb.jee.was.v6.common.QName }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "QName") - public JAXBElement<org.apache.openejb.jee.was.v6.common.QName> createQName( - final org.apache.openejb.jee.was.v6.common.QName value) { - return new JAXBElement<org.apache.openejb.jee.was.v6.common.QName>( - _QName_QNAME, org.apache.openejb.jee.was.v6.common.QName.class, - null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Listener }{@code - * >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "Listener") - public JAXBElement<Listener> createListener(final Listener value) { - return new JAXBElement<Listener>(_Listener_QNAME, Listener.class, null, - value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link SecurityRoleRef } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "SecurityRoleRef") - public JAXBElement<SecurityRoleRef> createSecurityRoleRef( - final SecurityRoleRef value) { - return new JAXBElement<SecurityRoleRef>(_SecurityRoleRef_QNAME, - SecurityRoleRef.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Identity }{@code - * >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "Identity") - public JAXBElement<Identity> createIdentity(final Identity value) { - return new JAXBElement<Identity>(_Identity_QNAME, Identity.class, null, - value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link Description } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "Description") - public JAXBElement<Description> createDescription(final Description value) { - return new JAXBElement<Description>(_Description_QNAME, - Description.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link EnvEntry }{@code - * >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "EnvEntry") - public JAXBElement<EnvEntry> createEnvEntry(final EnvEntry value) { - return new JAXBElement<EnvEntry>(_EnvEntry_QNAME, EnvEntry.class, null, - value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link DisplayName } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "DisplayName") - public JAXBElement<DisplayName> createDisplayName(final DisplayName value) { - return new JAXBElement<DisplayName>(_DisplayName_QNAME, - DisplayName.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ResourceEnvRef } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "ResourceEnvRef") - public JAXBElement<ResourceEnvRef> createResourceEnvRef(final ResourceEnvRef value) { - return new JAXBElement<ResourceEnvRef>(_ResourceEnvRef_QNAME, - ResourceEnvRef.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link DescriptionGroup }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "DescriptionGroup") - public JAXBElement<DescriptionGroup> createDescriptionGroup( - final DescriptionGroup value) { - return new JAXBElement<DescriptionGroup>(_DescriptionGroup_QNAME, - DescriptionGroup.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link SecurityIdentity }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "SecurityIdentity") - public JAXBElement<SecurityIdentity> createSecurityIdentity( - final SecurityIdentity value) { - return new JAXBElement<SecurityIdentity>(_SecurityIdentity_QNAME, - SecurityIdentity.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link RunAsSpecifiedIdentity }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "RunAsSpecifiedIdentity") - public JAXBElement<RunAsSpecifiedIdentity> createRunAsSpecifiedIdentity( - final RunAsSpecifiedIdentity value) { - return new JAXBElement<RunAsSpecifiedIdentity>( - _RunAsSpecifiedIdentity_QNAME, RunAsSpecifiedIdentity.class, - null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link IconType }{@code - * >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "IconType") - public JAXBElement<IconType> createIconType(final IconType value) { - return new JAXBElement<IconType>(_IconType_QNAME, IconType.class, null, - value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link UseCallerIdentity }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "UseCallerIdentity") - public JAXBElement<UseCallerIdentity> createUseCallerIdentity( - final UseCallerIdentity value) { - return new JAXBElement<UseCallerIdentity>(_UseCallerIdentity_QNAME, - UseCallerIdentity.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link MessageDestination }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "MessageDestination") - public JAXBElement<MessageDestination> createMessageDestination( - final MessageDestination value) { - return new JAXBElement<MessageDestination>(_MessageDestination_QNAME, - MessageDestination.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link MessageDestinationRef }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "MessageDestinationRef") - public JAXBElement<MessageDestinationRef> createMessageDestinationRef( - final MessageDestinationRef value) { - return new JAXBElement<MessageDestinationRef>( - _MessageDestinationRef_QNAME, MessageDestinationRef.class, - null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link CompatibilityDescriptionGroup }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "CompatibilityDescriptionGroup") - public JAXBElement<CompatibilityDescriptionGroup> createCompatibilityDescriptionGroup( - final CompatibilityDescriptionGroup value) { - return new JAXBElement<CompatibilityDescriptionGroup>( - _CompatibilityDescriptionGroup_QNAME, - CompatibilityDescriptionGroup.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ResourceRef } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "ResourceRef") - public JAXBElement<ResourceRef> createResourceRef(final ResourceRef value) { - return new JAXBElement<ResourceRef>(_ResourceRef_QNAME, - ResourceRef.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link ParamValue } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "ParamValue") - public JAXBElement<ParamValue> createParamValue(final ParamValue value) { - return new JAXBElement<ParamValue>(_ParamValue_QNAME, ParamValue.class, - null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link EjbRef }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "EjbRef") - public JAXBElement<EjbRef> createEjbRef(final EjbRef value) { - return new JAXBElement<EjbRef>(_EjbRef_QNAME, EjbRef.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link EJBLocalRef } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "EJBLocalRef") - public JAXBElement<EJBLocalRef> createEJBLocalRef(final EJBLocalRef value) { - return new JAXBElement<EJBLocalRef>(_EJBLocalRef_QNAME, - EJBLocalRef.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <}{@link SecurityRole } - * {@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "SecurityRole") - public JAXBElement<SecurityRole> createSecurityRole(final SecurityRole value) { - return new JAXBElement<SecurityRole>(_SecurityRole_QNAME, - SecurityRole.class, null, value); - } - - /** - * Create an instance of {@link JAXBElement }{@code <} - * {@link JNDIEnvRefsGroup }{@code >} - */ - @XmlElementDecl(namespace = "common.xmi", name = "JNDIEnvRefsGroup") - public JAXBElement<JNDIEnvRefsGroup> createJNDIEnvRefsGroup( - final JNDIEnvRefsGroup value) { - return new JAXBElement<JNDIEnvRefsGroup>(_JNDIEnvRefsGroup_QNAME, - JNDIEnvRefsGroup.class, null, value); - } - -} +/** + * 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.was.v6.common; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; + +/** + * This object contains factory methods for each Java content interface and Java + * element interface generated in the org.apache.openejb.jee.was.v6.common + * package. + * <p/> + * An ObjectFactory allows you to programatically construct new instances of the + * Java representation for XML content. The Java representation of XML content + * can consist of schema derived interfaces and classes representing the binding + * of schema type definitions, element declarations and model groups. Factory + * methods for each of these are provided in this class. + */ +@XmlRegistry +public class ObjectFactory { + + private final static javax.xml.namespace.QName _QName_QNAME = new javax.xml.namespace.QName( + "common.xmi", "QName"); + private final static javax.xml.namespace.QName _Listener_QNAME = new javax.xml.namespace.QName( + "common.xmi", "Listener"); + private final static javax.xml.namespace.QName _SecurityRoleRef_QNAME = new javax.xml.namespace.QName( + "common.xmi", "SecurityRoleRef"); + private final static javax.xml.namespace.QName _Identity_QNAME = new javax.xml.namespace.QName( + "common.xmi", "Identity"); + private final static javax.xml.namespace.QName _Description_QNAME = new javax.xml.namespace.QName( + "common.xmi", "Description"); + private final static javax.xml.namespace.QName _EnvEntry_QNAME = new javax.xml.namespace.QName( + "common.xmi", "EnvEntry"); + private final static javax.xml.namespace.QName _DisplayName_QNAME = new javax.xml.namespace.QName( + "common.xmi", "DisplayName"); + private final static javax.xml.namespace.QName _ResourceEnvRef_QNAME = new javax.xml.namespace.QName( + "common.xmi", "ResourceEnvRef"); + private final static javax.xml.namespace.QName _DescriptionGroup_QNAME = new javax.xml.namespace.QName( + "common.xmi", "DescriptionGroup"); + private final static javax.xml.namespace.QName _SecurityIdentity_QNAME = new javax.xml.namespace.QName( + "common.xmi", "SecurityIdentity"); + private final static javax.xml.namespace.QName _RunAsSpecifiedIdentity_QNAME = new javax.xml.namespace.QName( + "common.xmi", "RunAsSpecifiedIdentity"); + private final static javax.xml.namespace.QName _IconType_QNAME = new javax.xml.namespace.QName( + "common.xmi", "IconType"); + private final static javax.xml.namespace.QName _UseCallerIdentity_QNAME = new javax.xml.namespace.QName( + "common.xmi", "UseCallerIdentity"); + private final static javax.xml.namespace.QName _MessageDestination_QNAME = new javax.xml.namespace.QName( + "common.xmi", "MessageDestination"); + private final static javax.xml.namespace.QName _MessageDestinationRef_QNAME = new javax.xml.namespace.QName( + "common.xmi", "MessageDestinationRef"); + private final static javax.xml.namespace.QName _CompatibilityDescriptionGroup_QNAME = new javax.xml.namespace.QName( + "common.xmi", "CompatibilityDescriptionGroup"); + private final static javax.xml.namespace.QName _ResourceRef_QNAME = new javax.xml.namespace.QName( + "common.xmi", "ResourceRef"); + private final static javax.xml.namespace.QName _ParamValue_QNAME = new javax.xml.namespace.QName( + "common.xmi", "ParamValue"); + private final static javax.xml.namespace.QName _EjbRef_QNAME = new javax.xml.namespace.QName( + "common.xmi", "EjbRef"); + private final static javax.xml.namespace.QName _EJBLocalRef_QNAME = new javax.xml.namespace.QName( + "common.xmi", "EJBLocalRef"); + private final static javax.xml.namespace.QName _SecurityRole_QNAME = new javax.xml.namespace.QName( + "common.xmi", "SecurityRole"); + private final static javax.xml.namespace.QName _JNDIEnvRefsGroup_QNAME = new javax.xml.namespace.QName( + "common.xmi", "JNDIEnvRefsGroup"); + + /** + * Create a new ObjectFactory that can be used to create new instances of + * schema derived classes for package: org.apache.openejb.jee.was.v6.common + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link EJBLocalRef } + */ + public EJBLocalRef createEJBLocalRef() { + return new EJBLocalRef(); + } + + /** + * Create an instance of {@link SecurityRole } + */ + public SecurityRole createSecurityRole() { + return new SecurityRole(); + } + + /** + * Create an instance of {@link ResourceRef } + */ + public ResourceRef createResourceRef() { + return new ResourceRef(); + } + + /** + * Create an instance of {@link ResourceEnvRef } + */ + public ResourceEnvRef createResourceEnvRef() { + return new ResourceEnvRef(); + } + + /** + * Create an instance of {@link ParamValue } + */ + public ParamValue createParamValue() { + return new ParamValue(); + } + + /** + * Create an instance of {@link DisplayName } + */ + public DisplayName createDisplayName() { + return new DisplayName(); + } + + /** + * Create an instance of {@link CompatibilityDescriptionGroup } + */ + public CompatibilityDescriptionGroup createCompatibilityDescriptionGroup() { + return new CompatibilityDescriptionGroup(); + } + + /** + * Create an instance of {@link Identity } + */ + public Identity createIdentity() { + return new Identity(); + } + + /** + * Create an instance of {@link SecurityRoleRef } + */ + public SecurityRoleRef createSecurityRoleRef() { + return new SecurityRoleRef(); + } + + /** + * Create an instance of {@link IconType } + */ + public IconType createIconType() { + return new IconType(); + } + + /** + * Create an instance of {@link SecurityIdentity } + */ + public SecurityIdentity createSecurityIdentity() { + return new SecurityIdentity(); + } + + /** + * Create an instance of {@link UseCallerIdentity } + */ + public UseCallerIdentity createUseCallerIdentity() { + return new UseCallerIdentity(); + } + + /** + * Create an instance of {@link MessageDestinationRef } + */ + public MessageDestinationRef createMessageDestinationRef() { + return new MessageDestinationRef(); + } + + /** + * Create an instance of {@link org.apache.openejb.jee.was.v6.common.QName } + */ + public org.apache.openejb.jee.was.v6.common.QName createQName() { + return new org.apache.openejb.jee.was.v6.common.QName(); + } + + /** + * Create an instance of {@link MessageDestination } + */ + public MessageDestination createMessageDestination() { + return new MessageDestination(); + } + + /** + * Create an instance of {@link EjbRef } + */ + public EjbRef createEjbRef() { + return new EjbRef(); + } + + /** + * Create an instance of {@link Description } + */ + public Description createDescription() { + return new Description(); + } + + /** + * Create an instance of {@link JNDIEnvRefsGroup } + */ + public JNDIEnvRefsGroup createJNDIEnvRefsGroup() { + return new JNDIEnvRefsGroup(); + } + + /** + * Create an instance of {@link EnvEntry } + */ + public EnvEntry createEnvEntry() { + return new EnvEntry(); + } + + /** + * Create an instance of {@link RunAsSpecifiedIdentity } + */ + public RunAsSpecifiedIdentity createRunAsSpecifiedIdentity() { + return new RunAsSpecifiedIdentity(); + } + + /** + * Create an instance of {@link Listener } + */ + public Listener createListener() { + return new Listener(); + } + + /** + * Create an instance of {@link DescriptionGroup } + */ + public DescriptionGroup createDescriptionGroup() { + return new DescriptionGroup(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link org.apache.openejb.jee.was.v6.common.QName }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "QName") + public JAXBElement<org.apache.openejb.jee.was.v6.common.QName> createQName( + final org.apache.openejb.jee.was.v6.common.QName value) { + return new JAXBElement<org.apache.openejb.jee.was.v6.common.QName>( + _QName_QNAME, org.apache.openejb.jee.was.v6.common.QName.class, + null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Listener }{@code + * >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "Listener") + public JAXBElement<Listener> createListener(final Listener value) { + return new JAXBElement<Listener>(_Listener_QNAME, Listener.class, null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SecurityRoleRef } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "SecurityRoleRef") + public JAXBElement<SecurityRoleRef> createSecurityRoleRef( + final SecurityRoleRef value) { + return new JAXBElement<SecurityRoleRef>(_SecurityRoleRef_QNAME, + SecurityRoleRef.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Identity }{@code + * >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "Identity") + public JAXBElement<Identity> createIdentity(final Identity value) { + return new JAXBElement<Identity>(_Identity_QNAME, Identity.class, null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Description } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "Description") + public JAXBElement<Description> createDescription(final Description value) { + return new JAXBElement<Description>(_Description_QNAME, + Description.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EnvEntry }{@code + * >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "EnvEntry") + public JAXBElement<EnvEntry> createEnvEntry(final EnvEntry value) { + return new JAXBElement<EnvEntry>(_EnvEntry_QNAME, EnvEntry.class, null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link DisplayName } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "DisplayName") + public JAXBElement<DisplayName> createDisplayName(final DisplayName value) { + return new JAXBElement<DisplayName>(_DisplayName_QNAME, + DisplayName.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ResourceEnvRef } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "ResourceEnvRef") + public JAXBElement<ResourceEnvRef> createResourceEnvRef(final ResourceEnvRef value) { + return new JAXBElement<ResourceEnvRef>(_ResourceEnvRef_QNAME, + ResourceEnvRef.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link DescriptionGroup }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "DescriptionGroup") + public JAXBElement<DescriptionGroup> createDescriptionGroup( + final DescriptionGroup value) { + return new JAXBElement<DescriptionGroup>(_DescriptionGroup_QNAME, + DescriptionGroup.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link SecurityIdentity }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "SecurityIdentity") + public JAXBElement<SecurityIdentity> createSecurityIdentity( + final SecurityIdentity value) { + return new JAXBElement<SecurityIdentity>(_SecurityIdentity_QNAME, + SecurityIdentity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link RunAsSpecifiedIdentity }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "RunAsSpecifiedIdentity") + public JAXBElement<RunAsSpecifiedIdentity> createRunAsSpecifiedIdentity( + final RunAsSpecifiedIdentity value) { + return new JAXBElement<RunAsSpecifiedIdentity>( + _RunAsSpecifiedIdentity_QNAME, RunAsSpecifiedIdentity.class, + null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link IconType }{@code + * >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "IconType") + public JAXBElement<IconType> createIconType(final IconType value) { + return new JAXBElement<IconType>(_IconType_QNAME, IconType.class, null, + value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link UseCallerIdentity }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "UseCallerIdentity") + public JAXBElement<UseCallerIdentity> createUseCallerIdentity( + final UseCallerIdentity value) { + return new JAXBElement<UseCallerIdentity>(_UseCallerIdentity_QNAME, + UseCallerIdentity.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link MessageDestination }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "MessageDestination") + public JAXBElement<MessageDestination> createMessageDestination( + final MessageDestination value) { + return new JAXBElement<MessageDestination>(_MessageDestination_QNAME, + MessageDestination.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link MessageDestinationRef }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "MessageDestinationRef") + public JAXBElement<MessageDestinationRef> createMessageDestinationRef( + final MessageDestinationRef value) { + return new JAXBElement<MessageDestinationRef>( + _MessageDestinationRef_QNAME, MessageDestinationRef.class, + null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link CompatibilityDescriptionGroup }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "CompatibilityDescriptionGroup") + public JAXBElement<CompatibilityDescriptionGroup> createCompatibilityDescriptionGroup( + final CompatibilityDescriptionGroup value) { + return new JAXBElement<CompatibilityDescriptionGroup>( + _CompatibilityDescriptionGroup_QNAME, + CompatibilityDescriptionGroup.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ResourceRef } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "ResourceRef") + public JAXBElement<ResourceRef> createResourceRef(final ResourceRef value) { + return new JAXBElement<ResourceRef>(_ResourceRef_QNAME, + ResourceRef.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ParamValue } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "ParamValue") + public JAXBElement<ParamValue> createParamValue(final ParamValue value) { + return new JAXBElement<ParamValue>(_ParamValue_QNAME, ParamValue.class, + null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EjbRef }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "EjbRef") + public JAXBElement<EjbRef> createEjbRef(final EjbRef value) { + return new JAXBElement<EjbRef>(_EjbRef_QNAME, EjbRef.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EJBLocalRef } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "EJBLocalRef") + public JAXBElement<EJBLocalRef> createEJBLocalRef(final EJBLocalRef value) { + return new JAXBElement<EJBLocalRef>(_EJBLocalRef_QNAME, + EJBLocalRef.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link SecurityRole } + * {@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "SecurityRole") + public JAXBElement<SecurityRole> createSecurityRole(final SecurityRole value) { + return new JAXBElement<SecurityRole>(_SecurityRole_QNAME, + SecurityRole.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <} + * {@link JNDIEnvRefsGroup }{@code >} + */ + @XmlElementDecl(namespace = "common.xmi", name = "JNDIEnvRefsGroup") + public JAXBElement<JNDIEnvRefsGroup> createJNDIEnvRefsGroup( + final JNDIEnvRefsGroup value) { + return new JAXBElement<JNDIEnvRefsGroup>(_JNDIEnvRefsGroup_QNAME, + JNDIEnvRefsGroup.class, null, value); + } + +}