http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/QueryMethod.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/QueryMethod.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/QueryMethod.java index 6c0be79..ac38012 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/QueryMethod.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/QueryMethod.java @@ -1,44 +1,44 @@ -/** - * 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.ejb; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlType; - -/** - * <p/> - * Java class for QueryMethod complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="QueryMethod"> - * <complexContent> - * <extension base="{ejb.xmi}MethodElement"> - * </extension> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "QueryMethod") -public class QueryMethod extends MethodElement { - -} +/** + * 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.ejb; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + +/** + * <p/> + * Java class for QueryMethod complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="QueryMethod"> + * <complexContent> + * <extension base="{ejb.xmi}MethodElement"> + * </extension> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "QueryMethod") +public class QueryMethod extends MethodElement { + +}
http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Relationships.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Relationships.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Relationships.java index f3e276f..0cf7248 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Relationships.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Relationships.java @@ -1,333 +1,333 @@ -/** - * 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.ejb; - -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.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 org.apache.openejb.jee.was.v6.common.Description; -import org.apache.openejb.jee.was.v6.xmi.Extension; - -/** - * The relationships describes the relationships in which entity beans with - * container managed persistence participate. The relationships element contains - * an optional description; and a list of ejb-relation elements, which specify - * the container managed relationships. - * <p/> - * <p/> - * <p/> - * Java class for Relationships complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="Relationships"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="ejbRelations" type="{ejb.xmi}EJBRelation"/> - * </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="description" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute ref="{http://www.omg.org/XMI}id"/> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Relationships", propOrder = {"ejbRelations", "descriptions", - "extensions"}) -public class Relationships { - - protected List<EJBRelation> ejbRelations; - protected List<Description> descriptions; - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @XmlAttribute - protected String description; - @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 ejbRelations 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 ejbRelations property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getEjbRelations().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link EJBRelation } - */ - public List<EJBRelation> getEjbRelations() { - if (ejbRelations == null) { - ejbRelations = new ArrayList<EJBRelation>(); - } - return this.ejbRelations; - } - - /** - * 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 description property. - * - * @return possible object is {@link String } - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value allowed object is {@link String } - */ - public void setDescription(final String value) { - this.description = 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.ejb; + +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.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 org.apache.openejb.jee.was.v6.common.Description; +import org.apache.openejb.jee.was.v6.xmi.Extension; + +/** + * The relationships describes the relationships in which entity beans with + * container managed persistence participate. The relationships element contains + * an optional description; and a list of ejb-relation elements, which specify + * the container managed relationships. + * <p/> + * <p/> + * <p/> + * Java class for Relationships complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="Relationships"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="ejbRelations" type="{ejb.xmi}EJBRelation"/> + * </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="description" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute ref="{http://www.omg.org/XMI}id"/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Relationships", propOrder = {"ejbRelations", "descriptions", + "extensions"}) +public class Relationships { + + protected List<EJBRelation> ejbRelations; + protected List<Description> descriptions; + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @XmlAttribute + protected String description; + @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 ejbRelations 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 ejbRelations property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getEjbRelations().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link EJBRelation } + */ + public List<EJBRelation> getEjbRelations() { + if (ejbRelations == null) { + ejbRelations = new ArrayList<EJBRelation>(); + } + return this.ejbRelations; + } + + /** + * 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 description property. + * + * @return possible object is {@link String } + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value allowed object is {@link String } + */ + public void setDescription(final String value) { + this.description = 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/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/ReturnTypeMappingEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/ReturnTypeMappingEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/ReturnTypeMappingEnum.java index 3841eb0..b1865a4 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/ReturnTypeMappingEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/ReturnTypeMappingEnum.java @@ -1,65 +1,65 @@ -/** - * 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.ejb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for ReturnTypeMapping. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="ReturnTypeMapping"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="Local"/> - * <enumeration value="Remote"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum ReturnTypeMappingEnum { - - @XmlEnumValue("Local") - LOCAL("Local"), @XmlEnumValue("Remote") - REMOTE("Remote"); - private final String value; - - ReturnTypeMappingEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static ReturnTypeMappingEnum fromValue(final String v) { - for (final ReturnTypeMappingEnum c : ReturnTypeMappingEnum.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.ejb; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for ReturnTypeMapping. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="ReturnTypeMapping"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="Local"/> + * <enumeration value="Remote"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum ReturnTypeMappingEnum { + + @XmlEnumValue("Local") + LOCAL("Local"), @XmlEnumValue("Remote") + REMOTE("Remote"); + private final String value; + + ReturnTypeMappingEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static ReturnTypeMappingEnum fromValue(final String v) { + for (final ReturnTypeMappingEnum c : ReturnTypeMappingEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/RoleSource.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/RoleSource.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/RoleSource.java index 4af4c8e..0f0d8f8 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/RoleSource.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/RoleSource.java @@ -1,355 +1,355 @@ -/** - * 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.ejb; - -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.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 org.apache.openejb.jee.was.v6.common.Description; -import org.apache.openejb.jee.was.v6.xmi.Extension; - -/** - * Designates the source of a role that participates in a relationship. A - * relationship-role-source element uniquely identifies an entity bean. @invariant - * The content of each role-source element shall refer to an existing entity - * bean, entity bean reference. - * <p/> - * <p/> - * <p/> - * Java class for RoleSource complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="RoleSource"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="entityBean" type="{ejb.xmi}ContainerManagedEntity"/> - * </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="description" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="entityBean" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute ref="{http://www.omg.org/XMI}id"/> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "RoleSource", propOrder = {"entityBeans", "descriptions", - "extensions"}) -public class RoleSource { - - @XmlElement(name = "entityBean") - protected List<ContainerManagedEntity> entityBeans; - protected List<Description> descriptions; - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @XmlAttribute - protected String description; - @XmlAttribute - protected String entityBean; - @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 entityBeans 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 entityBeans property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getEntityBeans().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link ContainerManagedEntity } - */ - public List<ContainerManagedEntity> getEntityBeans() { - if (entityBeans == null) { - entityBeans = new ArrayList<ContainerManagedEntity>(); - } - return this.entityBeans; - } - - /** - * 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 description property. - * - * @return possible object is {@link String } - */ - public String getDescription() { - return description; - } - - /** - * Sets the value of the description property. - * - * @param value allowed object is {@link String } - */ - public void setDescription(final String value) { - this.description = value; - } - - /** - * Gets the value of the entityBean property. - * - * @return possible object is {@link String } - */ - public String getEntityBean() { - return entityBean; - } - - /** - * Sets the value of the entityBean property. - * - * @param value allowed object is {@link String } - */ - public void setEntityBean(final String value) { - this.entityBean = 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.ejb; + +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.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 org.apache.openejb.jee.was.v6.common.Description; +import org.apache.openejb.jee.was.v6.xmi.Extension; + +/** + * Designates the source of a role that participates in a relationship. A + * relationship-role-source element uniquely identifies an entity bean. @invariant + * The content of each role-source element shall refer to an existing entity + * bean, entity bean reference. + * <p/> + * <p/> + * <p/> + * Java class for RoleSource complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="RoleSource"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="entityBean" type="{ejb.xmi}ContainerManagedEntity"/> + * </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="description" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="entityBean" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute ref="{http://www.omg.org/XMI}id"/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "RoleSource", propOrder = {"entityBeans", "descriptions", + "extensions"}) +public class RoleSource { + + @XmlElement(name = "entityBean") + protected List<ContainerManagedEntity> entityBeans; + protected List<Description> descriptions; + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @XmlAttribute + protected String description; + @XmlAttribute + protected String entityBean; + @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 entityBeans 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 entityBeans property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getEntityBeans().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link ContainerManagedEntity } + */ + public List<ContainerManagedEntity> getEntityBeans() { + if (entityBeans == null) { + entityBeans = new ArrayList<ContainerManagedEntity>(); + } + return this.entityBeans; + } + + /** + * 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 description property. + * + * @return possible object is {@link String } + */ + public String getDescription() { + return description; + } + + /** + * Sets the value of the description property. + * + * @param value allowed object is {@link String } + */ + public void setDescription(final String value) { + this.description = value; + } + + /** + * Gets the value of the entityBean property. + * + * @return possible object is {@link String } + */ + public String getEntityBean() { + return entityBean; + } + + /** + * Sets the value of the entityBean property. + * + * @param value allowed object is {@link String } + */ + public void setEntityBean(final String value) { + this.entityBean = 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/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Session.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Session.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Session.java index 3eea768..5922e73 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Session.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/Session.java @@ -1,176 +1,176 @@ -/** - * 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.ejb; - -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.XmlAttribute; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlType; - -import org.apache.openejb.jee.was.v6.java.JavaClass; - -/** - * The session-beanType declares an session bean. The declaration consists of: - * <p/> - * - an optional description - an optional display name - an optional icon - * element that contains a small and a large icon file name - a name assigned to - * the enterprise bean in the deployment description - the names of the session - * bean's remote home and remote interfaces, if any - the names of the session - * bean's local home and local interfaces, if any - the name of the session - * bean's web service endpoint interface, if any - the session bean's - * implementation class - the session bean's state management type - the session - * bean's transaction management type - an optional declaration of the bean's - * environment entries - an optional declaration of the bean's EJB references - - * an optional declaration of the bean's local EJB references - an optional - * declaration of the bean's web service references - an optional declaration of - * the security role references - an optional declaration of the security - * identity to be used for the execution of the bean's methods - an optional - * declaration of the bean's resource manager connection factory references - an - * optional declaration of the bean's resource environment references. - an - * optional declaration of the bean's message destination references - * <p/> - * The elements that are optional are "optional" in the sense that they are - * omitted when if lists represented by them are empty. - * <p/> - * Either both the local-home and the local elements or both the home and the - * remote elements must be specified for the session bean. - * <p/> - * The service-endpoint element may only be specified if the bean is a stateless - * session bean. - * <p/> - * <p/> - * <p/> - * Java class for Session complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="Session"> - * <complexContent> - * <extension base="{ejb.xmi}EnterpriseBean"> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="serviceEndpoint" type="{java.xmi}JavaClass"/> - * </choice> - * <attribute name="serviceEndpoint" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="sessionType" type="{ejb.xmi}SessionType" /> - * <attribute name="transactionType" type="{ejb.xmi}TransactionType" /> - * </extension> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "Session", propOrder = {"serviceEndpoints"}) -public class Session extends EnterpriseBean { - - @XmlElement(name = "serviceEndpoint") - protected List<JavaClass> serviceEndpoints; - @XmlAttribute - protected String serviceEndpoint; - @XmlAttribute - protected SessionEnum sessionType; - @XmlAttribute - protected TransactionEnum transactionType; - - /** - * Gets the value of the serviceEndpoints 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 serviceEndpoints property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getServiceEndpoints().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link JavaClass } - */ - public List<JavaClass> getServiceEndpoints() { - if (serviceEndpoints == null) { - serviceEndpoints = new ArrayList<JavaClass>(); - } - return this.serviceEndpoints; - } - - /** - * Gets the value of the serviceEndpoint property. - * - * @return possible object is {@link String } - */ - public String getServiceEndpoint() { - return serviceEndpoint; - } - - /** - * Sets the value of the serviceEndpoint property. - * - * @param value allowed object is {@link String } - */ - public void setServiceEndpoint(final String value) { - this.serviceEndpoint = value; - } - - /** - * Gets the value of the sessionType property. - * - * @return possible object is {@link SessionEnum } - */ - public SessionEnum getSessionType() { - return sessionType; - } - - /** - * Sets the value of the sessionType property. - * - * @param value allowed object is {@link SessionEnum } - */ - public void setSessionType(final SessionEnum value) { - this.sessionType = value; - } - - /** - * Gets the value of the transactionType property. - * - * @return possible object is {@link TransactionEnum } - */ - public TransactionEnum getTransactionType() { - return transactionType; - } - - /** - * Sets the value of the transactionType property. - * - * @param value allowed object is {@link TransactionEnum } - */ - public void setTransactionType(final TransactionEnum value) { - this.transactionType = 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.ejb; + +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.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + +import org.apache.openejb.jee.was.v6.java.JavaClass; + +/** + * The session-beanType declares an session bean. The declaration consists of: + * <p/> + * - an optional description - an optional display name - an optional icon + * element that contains a small and a large icon file name - a name assigned to + * the enterprise bean in the deployment description - the names of the session + * bean's remote home and remote interfaces, if any - the names of the session + * bean's local home and local interfaces, if any - the name of the session + * bean's web service endpoint interface, if any - the session bean's + * implementation class - the session bean's state management type - the session + * bean's transaction management type - an optional declaration of the bean's + * environment entries - an optional declaration of the bean's EJB references - + * an optional declaration of the bean's local EJB references - an optional + * declaration of the bean's web service references - an optional declaration of + * the security role references - an optional declaration of the security + * identity to be used for the execution of the bean's methods - an optional + * declaration of the bean's resource manager connection factory references - an + * optional declaration of the bean's resource environment references. - an + * optional declaration of the bean's message destination references + * <p/> + * The elements that are optional are "optional" in the sense that they are + * omitted when if lists represented by them are empty. + * <p/> + * Either both the local-home and the local elements or both the home and the + * remote elements must be specified for the session bean. + * <p/> + * The service-endpoint element may only be specified if the bean is a stateless + * session bean. + * <p/> + * <p/> + * <p/> + * Java class for Session complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="Session"> + * <complexContent> + * <extension base="{ejb.xmi}EnterpriseBean"> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="serviceEndpoint" type="{java.xmi}JavaClass"/> + * </choice> + * <attribute name="serviceEndpoint" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="sessionType" type="{ejb.xmi}SessionType" /> + * <attribute name="transactionType" type="{ejb.xmi}TransactionType" /> + * </extension> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "Session", propOrder = {"serviceEndpoints"}) +public class Session extends EnterpriseBean { + + @XmlElement(name = "serviceEndpoint") + protected List<JavaClass> serviceEndpoints; + @XmlAttribute + protected String serviceEndpoint; + @XmlAttribute + protected SessionEnum sessionType; + @XmlAttribute + protected TransactionEnum transactionType; + + /** + * Gets the value of the serviceEndpoints 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 serviceEndpoints property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getServiceEndpoints().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link JavaClass } + */ + public List<JavaClass> getServiceEndpoints() { + if (serviceEndpoints == null) { + serviceEndpoints = new ArrayList<JavaClass>(); + } + return this.serviceEndpoints; + } + + /** + * Gets the value of the serviceEndpoint property. + * + * @return possible object is {@link String } + */ + public String getServiceEndpoint() { + return serviceEndpoint; + } + + /** + * Sets the value of the serviceEndpoint property. + * + * @param value allowed object is {@link String } + */ + public void setServiceEndpoint(final String value) { + this.serviceEndpoint = value; + } + + /** + * Gets the value of the sessionType property. + * + * @return possible object is {@link SessionEnum } + */ + public SessionEnum getSessionType() { + return sessionType; + } + + /** + * Sets the value of the sessionType property. + * + * @param value allowed object is {@link SessionEnum } + */ + public void setSessionType(final SessionEnum value) { + this.sessionType = value; + } + + /** + * Gets the value of the transactionType property. + * + * @return possible object is {@link TransactionEnum } + */ + public TransactionEnum getTransactionType() { + return transactionType; + } + + /** + * Sets the value of the transactionType property. + * + * @param value allowed object is {@link TransactionEnum } + */ + public void setTransactionType(final TransactionEnum value) { + this.transactionType = value; + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SessionEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SessionEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SessionEnum.java index 06add94..dd36bd2 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SessionEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SessionEnum.java @@ -1,65 +1,65 @@ -/** - * 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.ejb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for SessionType. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="SessionType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="Stateful"/> - * <enumeration value="Stateless"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum SessionEnum { - - @XmlEnumValue("Stateful") - STATEFUL("Stateful"), @XmlEnumValue("Stateless") - STATELESS("Stateless"); - private final String value; - - SessionEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static SessionEnum fromValue(final String v) { - for (final SessionEnum c : SessionEnum.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.ejb; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for SessionType. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="SessionType"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="Stateful"/> + * <enumeration value="Stateless"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum SessionEnum { + + @XmlEnumValue("Stateful") + STATEFUL("Stateful"), @XmlEnumValue("Stateless") + STATELESS("Stateless"); + private final String value; + + SessionEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static SessionEnum fromValue(final String v) { + for (final SessionEnum c : SessionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SubscriptionDurabilityEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SubscriptionDurabilityEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SubscriptionDurabilityEnum.java index d61a3c1..92841cf 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SubscriptionDurabilityEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/SubscriptionDurabilityEnum.java @@ -1,65 +1,65 @@ -/** - * 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.ejb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for SubscriptionDurabilityKind. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="SubscriptionDurabilityKind"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="Durable"/> - * <enumeration value="NonDurable"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum SubscriptionDurabilityEnum { - - @XmlEnumValue("Durable") - DURABLE("Durable"), @XmlEnumValue("NonDurable") - NON_DURABLE("NonDurable"); - private final String value; - - SubscriptionDurabilityEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static SubscriptionDurabilityEnum fromValue(final String v) { - for (final SubscriptionDurabilityEnum c : SubscriptionDurabilityEnum.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.ejb; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for SubscriptionDurabilityKind. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="SubscriptionDurabilityKind"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="Durable"/> + * <enumeration value="NonDurable"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum SubscriptionDurabilityEnum { + + @XmlEnumValue("Durable") + DURABLE("Durable"), @XmlEnumValue("NonDurable") + NON_DURABLE("NonDurable"); + private final String value; + + SubscriptionDurabilityEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static SubscriptionDurabilityEnum fromValue(final String v) { + for (final SubscriptionDurabilityEnum c : SubscriptionDurabilityEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionAttributeEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionAttributeEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionAttributeEnum.java index 8ae29e4..b845dbf 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionAttributeEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionAttributeEnum.java @@ -1,73 +1,73 @@ -/** - * 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.ejb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for TransactionAttributeType. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="TransactionAttributeType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="NotSupported"/> - * <enumeration value="Supports"/> - * <enumeration value="Required"/> - * <enumeration value="RequiresNew"/> - * <enumeration value="Mandatory"/> - * <enumeration value="Never"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum TransactionAttributeEnum { - - @XmlEnumValue("NotSupported") - NOT_SUPPORTED("NotSupported"), @XmlEnumValue("Supports") - SUPPORTS("Supports"), @XmlEnumValue("Required") - REQUIRED("Required"), @XmlEnumValue("RequiresNew") - REQUIRES_NEW("RequiresNew"), @XmlEnumValue("Mandatory") - MANDATORY("Mandatory"), @XmlEnumValue("Never") - NEVER("Never"); - private final String value; - - TransactionAttributeEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static TransactionAttributeEnum fromValue(final String v) { - for (final TransactionAttributeEnum c : TransactionAttributeEnum.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.ejb; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for TransactionAttributeType. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="TransactionAttributeType"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="NotSupported"/> + * <enumeration value="Supports"/> + * <enumeration value="Required"/> + * <enumeration value="RequiresNew"/> + * <enumeration value="Mandatory"/> + * <enumeration value="Never"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum TransactionAttributeEnum { + + @XmlEnumValue("NotSupported") + NOT_SUPPORTED("NotSupported"), @XmlEnumValue("Supports") + SUPPORTS("Supports"), @XmlEnumValue("Required") + REQUIRED("Required"), @XmlEnumValue("RequiresNew") + REQUIRES_NEW("RequiresNew"), @XmlEnumValue("Mandatory") + MANDATORY("Mandatory"), @XmlEnumValue("Never") + NEVER("Never"); + private final String value; + + TransactionAttributeEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static TransactionAttributeEnum fromValue(final String v) { + for (final TransactionAttributeEnum c : TransactionAttributeEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionEnum.java index 7f38b7a..0ee4ff3 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/TransactionEnum.java @@ -1,65 +1,65 @@ -/** - * 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.ejb; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for TransactionType. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="TransactionType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="Bean"/> - * <enumeration value="Container"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum TransactionEnum { - - @XmlEnumValue("Bean") - BEAN("Bean"), @XmlEnumValue("Container") - CONTAINER("Container"); - private final String value; - - TransactionEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static TransactionEnum fromValue(final String v) { - for (final TransactionEnum c : TransactionEnum.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.ejb; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for TransactionType. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="TransactionType"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="Bean"/> + * <enumeration value="Container"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum TransactionEnum { + + @XmlEnumValue("Bean") + BEAN("Bean"), @XmlEnumValue("Container") + CONTAINER("Container"); + private final String value; + + TransactionEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static TransactionEnum fromValue(final String v) { + for (final TransactionEnum c : TransactionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v.toString()); + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/package-info.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/package-info.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/package-info.java index d1d4a4b..62fbfe9 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/package-info.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejb/package-info.java @@ -1,18 +1,18 @@ -/** - * 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. - */ -@javax.xml.bind.annotation.XmlSchema(namespace = "ejb.xmi") package org.apache.openejb.jee.was.v6.ejb; - +/** + * 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. + */ +@javax.xml.bind.annotation.XmlSchema(namespace = "ejb.xmi") package org.apache.openejb.jee.was.v6.ejb; +