http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPConnectionFactoryBinding.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPConnectionFactoryBinding.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPConnectionFactoryBinding.java index bef74bc..e6063f9 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPConnectionFactoryBinding.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPConnectionFactoryBinding.java @@ -1,336 +1,336 @@ -/** - * 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.ejbbnd; - -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.commonbnd.Property; -import org.apache.openejb.jee.was.v6.xmi.Extension; - -/** - * <p/> - * Java class for CMPConnectionFactoryBinding complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="CMPConnectionFactoryBinding"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="properties" type="{commonbnd.xmi}Property"/> - * </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="jndiName" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="loginConfigurationName" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="resAuth" type="{ejbbnd.xmi}CMPResAuthType" /> - * <attribute ref="{http://www.omg.org/XMI}id"/> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CMPConnectionFactoryBinding", propOrder = {"properties", - "extensions"}) -public class CMPConnectionFactoryBinding { - - protected List<Property> properties; - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @XmlAttribute - protected String jndiName; - @XmlAttribute - protected String loginConfigurationName; - @XmlAttribute - protected CMPResAuthEnum resAuth; - @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 properties 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 properties property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getProperties().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list {@link Property } - */ - public List<Property> getProperties() { - if (properties == null) { - properties = new ArrayList<Property>(); - } - return this.properties; - } - - /** - * 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 jndiName property. - * - * @return possible object is {@link String } - */ - public String getJndiName() { - return jndiName; - } - - /** - * Sets the value of the jndiName property. - * - * @param value allowed object is {@link String } - */ - public void setJndiName(final String value) { - this.jndiName = value; - } - - /** - * Gets the value of the loginConfigurationName property. - * - * @return possible object is {@link String } - */ - public String getLoginConfigurationName() { - return loginConfigurationName; - } - - /** - * Sets the value of the loginConfigurationName property. - * - * @param value allowed object is {@link String } - */ - public void setLoginConfigurationName(final String value) { - this.loginConfigurationName = value; - } - - /** - * Gets the value of the resAuth property. - * - * @return possible object is {@link CMPResAuthEnum } - */ - public CMPResAuthEnum getResAuth() { - return resAuth; - } - - /** - * Sets the value of the resAuth property. - * - * @param value allowed object is {@link CMPResAuthEnum } - */ - public void setResAuth(final CMPResAuthEnum value) { - this.resAuth = 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.ejbbnd; + +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.commonbnd.Property; +import org.apache.openejb.jee.was.v6.xmi.Extension; + +/** + * <p/> + * Java class for CMPConnectionFactoryBinding complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="CMPConnectionFactoryBinding"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="properties" type="{commonbnd.xmi}Property"/> + * </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="jndiName" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="loginConfigurationName" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="resAuth" type="{ejbbnd.xmi}CMPResAuthType" /> + * <attribute ref="{http://www.omg.org/XMI}id"/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CMPConnectionFactoryBinding", propOrder = {"properties", + "extensions"}) +public class CMPConnectionFactoryBinding { + + protected List<Property> properties; + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @XmlAttribute + protected String jndiName; + @XmlAttribute + protected String loginConfigurationName; + @XmlAttribute + protected CMPResAuthEnum resAuth; + @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 properties 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 properties property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getProperties().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list {@link Property } + */ + public List<Property> getProperties() { + if (properties == null) { + properties = new ArrayList<Property>(); + } + return this.properties; + } + + /** + * 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 jndiName property. + * + * @return possible object is {@link String } + */ + public String getJndiName() { + return jndiName; + } + + /** + * Sets the value of the jndiName property. + * + * @param value allowed object is {@link String } + */ + public void setJndiName(final String value) { + this.jndiName = value; + } + + /** + * Gets the value of the loginConfigurationName property. + * + * @return possible object is {@link String } + */ + public String getLoginConfigurationName() { + return loginConfigurationName; + } + + /** + * Sets the value of the loginConfigurationName property. + * + * @param value allowed object is {@link String } + */ + public void setLoginConfigurationName(final String value) { + this.loginConfigurationName = value; + } + + /** + * Gets the value of the resAuth property. + * + * @return possible object is {@link CMPResAuthEnum } + */ + public CMPResAuthEnum getResAuth() { + return resAuth; + } + + /** + * Sets the value of the resAuth property. + * + * @param value allowed object is {@link CMPResAuthEnum } + */ + public void setResAuth(final CMPResAuthEnum value) { + this.resAuth = 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/ejbbnd/CMPResAuthEnum.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPResAuthEnum.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPResAuthEnum.java index eae3532..6fb5a79 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPResAuthEnum.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/CMPResAuthEnum.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.ejbbnd; - -import javax.xml.bind.annotation.XmlEnum; -import javax.xml.bind.annotation.XmlEnumValue; - -/** - * <p/> - * Java class for CMPResAuthType. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <p/> - * <pre> - * <simpleType name="CMPResAuthType"> - * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> - * <enumeration value="Per_Connection_Factory"/> - * <enumeration value="Container"/> - * </restriction> - * </simpleType> - * </pre> - */ -@XmlEnum -public enum CMPResAuthEnum { - - @XmlEnumValue("Per_Connection_Factory") - PER_CONNECTION_FACTORY("Per_Connection_Factory"), @XmlEnumValue("Container") - CONTAINER("Container"); - private final String value; - - CMPResAuthEnum(final String v) { - value = v; - } - - public String value() { - return value; - } - - public static CMPResAuthEnum fromValue(final String v) { - for (final CMPResAuthEnum c : CMPResAuthEnum.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.ejbbnd; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; + +/** + * <p/> + * Java class for CMPResAuthType. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <p/> + * <pre> + * <simpleType name="CMPResAuthType"> + * <restriction base="{http://www.w3.org/2001/XMLSchema}NCName"> + * <enumeration value="Per_Connection_Factory"/> + * <enumeration value="Container"/> + * </restriction> + * </simpleType> + * </pre> + */ +@XmlEnum +public enum CMPResAuthEnum { + + @XmlEnumValue("Per_Connection_Factory") + PER_CONNECTION_FACTORY("Per_Connection_Factory"), @XmlEnumValue("Container") + CONTAINER("Container"); + private final String value; + + CMPResAuthEnum(final String v) { + value = v; + } + + public String value() { + return value; + } + + public static CMPResAuthEnum fromValue(final String v) { + for (final CMPResAuthEnum c : CMPResAuthEnum.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/ejbbnd/EJBJarBinding.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/EJBJarBinding.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/EJBJarBinding.java index 5d7a5b6..b8e138b 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/EJBJarBinding.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/ejbbnd/EJBJarBinding.java @@ -1,415 +1,415 @@ -/** - * 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.ejbbnd; - -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.commonbnd.ResourceRefBinding; -import org.apache.openejb.jee.was.v6.ejb.EJBJar; -import org.apache.openejb.jee.was.v6.xmi.Extension; - -/** - * <p/> - * Java class for EJBJarBinding complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="EJBJarBinding"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="defaultDatasource" type="{commonbnd.xmi}ResourceRefBinding"/> - * </choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="ejbJar" type="{ejb.xmi}EJBJar"/> - * </choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="ejbBindings" type="{ejbbnd.xmi}EnterpriseBeanBinding"/> - * </choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="defaultCMPConnectionFactory" type="{ejbbnd.xmi}CMPConnectionFactoryBinding"/> - * </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="currentBackendId" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="ejbJar" 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 = "EJBJarBinding", propOrder = {"defaultDatasources", "ejbJars", - "ejbBindings", "defaultCMPConnectionFactories", "extensions"}) -public class EJBJarBinding { - - @XmlElement(name = "defaultDatasource") - protected List<ResourceRefBinding> defaultDatasources; - @XmlElement(name = "ejbJar") - protected List<EJBJar> ejbJars; - protected List<EnterpriseBeanBinding> ejbBindings; - @XmlElement(name = "defaultCMPConnectionFactory") - protected List<CMPConnectionFactoryBinding> defaultCMPConnectionFactories; - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @XmlAttribute - protected String currentBackendId; - @XmlAttribute - protected String ejbJar; - @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 defaultDatasources 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 defaultDatasources property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getDefaultDatasources().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link ResourceRefBinding } - */ - public List<ResourceRefBinding> getDefaultDatasources() { - if (defaultDatasources == null) { - defaultDatasources = new ArrayList<ResourceRefBinding>(); - } - return this.defaultDatasources; - } - - /** - * Gets the value of the ejbJars 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 ejbJars property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getEjbJars().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list {@link EJBJar } - */ - public List<EJBJar> getEjbJars() { - if (ejbJars == null) { - ejbJars = new ArrayList<EJBJar>(); - } - return this.ejbJars; - } - - /** - * Gets the value of the ejbBindings 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 ejbBindings property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getEjbBindings().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link EnterpriseBeanBinding } - */ - public List<EnterpriseBeanBinding> getEjbBindings() { - if (ejbBindings == null) { - ejbBindings = new ArrayList<EnterpriseBeanBinding>(); - } - return this.ejbBindings; - } - - /** - * Gets the value of the defaultCMPConnectionFactories 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 defaultCMPConnectionFactories property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getDefaultCMPConnectionFactories().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link CMPConnectionFactoryBinding } - */ - public List<CMPConnectionFactoryBinding> getDefaultCMPConnectionFactories() { - if (defaultCMPConnectionFactories == null) { - defaultCMPConnectionFactories = new ArrayList<CMPConnectionFactoryBinding>(); - } - return this.defaultCMPConnectionFactories; - } - - /** - * 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 currentBackendId property. - * - * @return possible object is {@link String } - */ - public String getCurrentBackendId() { - return currentBackendId; - } - - /** - * Sets the value of the currentBackendId property. - * - * @param value allowed object is {@link String } - */ - public void setCurrentBackendId(final String value) { - this.currentBackendId = value; - } - - /** - * Gets the value of the ejbJar property. - * - * @return possible object is {@link String } - */ - public String getEjbJar() { - return ejbJar; - } - - /** - * Sets the value of the ejbJar property. - * - * @param value allowed object is {@link String } - */ - public void setEjbJar(final String value) { - this.ejbJar = 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.ejbbnd; + +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.commonbnd.ResourceRefBinding; +import org.apache.openejb.jee.was.v6.ejb.EJBJar; +import org.apache.openejb.jee.was.v6.xmi.Extension; + +/** + * <p/> + * Java class for EJBJarBinding complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="EJBJarBinding"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="defaultDatasource" type="{commonbnd.xmi}ResourceRefBinding"/> + * </choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="ejbJar" type="{ejb.xmi}EJBJar"/> + * </choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="ejbBindings" type="{ejbbnd.xmi}EnterpriseBeanBinding"/> + * </choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="defaultCMPConnectionFactory" type="{ejbbnd.xmi}CMPConnectionFactoryBinding"/> + * </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="currentBackendId" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="ejbJar" 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 = "EJBJarBinding", propOrder = {"defaultDatasources", "ejbJars", + "ejbBindings", "defaultCMPConnectionFactories", "extensions"}) +public class EJBJarBinding { + + @XmlElement(name = "defaultDatasource") + protected List<ResourceRefBinding> defaultDatasources; + @XmlElement(name = "ejbJar") + protected List<EJBJar> ejbJars; + protected List<EnterpriseBeanBinding> ejbBindings; + @XmlElement(name = "defaultCMPConnectionFactory") + protected List<CMPConnectionFactoryBinding> defaultCMPConnectionFactories; + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @XmlAttribute + protected String currentBackendId; + @XmlAttribute + protected String ejbJar; + @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 defaultDatasources 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 defaultDatasources property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getDefaultDatasources().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link ResourceRefBinding } + */ + public List<ResourceRefBinding> getDefaultDatasources() { + if (defaultDatasources == null) { + defaultDatasources = new ArrayList<ResourceRefBinding>(); + } + return this.defaultDatasources; + } + + /** + * Gets the value of the ejbJars 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 ejbJars property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getEjbJars().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list {@link EJBJar } + */ + public List<EJBJar> getEjbJars() { + if (ejbJars == null) { + ejbJars = new ArrayList<EJBJar>(); + } + return this.ejbJars; + } + + /** + * Gets the value of the ejbBindings 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 ejbBindings property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getEjbBindings().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link EnterpriseBeanBinding } + */ + public List<EnterpriseBeanBinding> getEjbBindings() { + if (ejbBindings == null) { + ejbBindings = new ArrayList<EnterpriseBeanBinding>(); + } + return this.ejbBindings; + } + + /** + * Gets the value of the defaultCMPConnectionFactories 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 defaultCMPConnectionFactories property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getDefaultCMPConnectionFactories().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link CMPConnectionFactoryBinding } + */ + public List<CMPConnectionFactoryBinding> getDefaultCMPConnectionFactories() { + if (defaultCMPConnectionFactories == null) { + defaultCMPConnectionFactories = new ArrayList<CMPConnectionFactoryBinding>(); + } + return this.defaultCMPConnectionFactories; + } + + /** + * 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 currentBackendId property. + * + * @return possible object is {@link String } + */ + public String getCurrentBackendId() { + return currentBackendId; + } + + /** + * Sets the value of the currentBackendId property. + * + * @param value allowed object is {@link String } + */ + public void setCurrentBackendId(final String value) { + this.currentBackendId = value; + } + + /** + * Gets the value of the ejbJar property. + * + * @return possible object is {@link String } + */ + public String getEjbJar() { + return ejbJar; + } + + /** + * Sets the value of the ejbJar property. + * + * @param value allowed object is {@link String } + */ + public void setEjbJar(final String value) { + this.ejbJar = 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; + } + +}