http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/MapKeyJoinColumn.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/MapKeyJoinColumn.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/MapKeyJoinColumn.java index 5bdbb49..ef0e3b6 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/MapKeyJoinColumn.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/MapKeyJoinColumn.java @@ -1,243 +1,243 @@ -/** - * 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.jpa; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - * @Target({METHOD, FIELD}) @Retention(RUNTIME) - * public @interface MapKeyJoinColumn { - * String name() default ""; - * String referencedColumnName() default ""; - * boolean unique() default false; - * boolean nullable() default false; - * boolean insertable() default true; - * boolean updatable() default true; - * String columnDefinition() default ""; - * String table() default ""; - * } - * <p/> - * <p/> - * <p/> - * <p>Java class for map-key-join-column complex type. - * <p/> - * <p>The following schema fragment specifies the expected content contained within this class. - * <p/> - * <pre> - * <complexType name="map-key-join-column"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="referenced-column-name" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "map-key-join-column") -public class MapKeyJoinColumn { - - @XmlAttribute - protected String name; - @XmlAttribute(name = "referenced-column-name") - protected String referencedColumnName; - @XmlAttribute - protected Boolean unique; - @XmlAttribute - protected Boolean nullable; - @XmlAttribute - protected Boolean insertable; - @XmlAttribute - protected Boolean updatable; - @XmlAttribute(name = "column-definition") - protected String columnDefinition; - @XmlAttribute - protected String table; - - /** - * Gets the value of the name property. - * - * @return possible object is - * {@link String } - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value allowed object is - * {@link String } - */ - public void setName(final String value) { - this.name = value; - } - - /** - * Gets the value of the referencedColumnName property. - * - * @return possible object is - * {@link String } - */ - public String getReferencedColumnName() { - return referencedColumnName; - } - - /** - * Sets the value of the referencedColumnName property. - * - * @param value allowed object is - * {@link String } - */ - public void setReferencedColumnName(final String value) { - this.referencedColumnName = value; - } - - /** - * Gets the value of the unique property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isUnique() { - return unique; - } - - /** - * Sets the value of the unique property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setUnique(final Boolean value) { - this.unique = value; - } - - /** - * Gets the value of the nullable property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isNullable() { - return nullable; - } - - /** - * Sets the value of the nullable property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setNullable(final Boolean value) { - this.nullable = value; - } - - /** - * Gets the value of the insertable property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isInsertable() { - return insertable; - } - - /** - * Sets the value of the insertable property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setInsertable(final Boolean value) { - this.insertable = value; - } - - /** - * Gets the value of the updatable property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isUpdatable() { - return updatable; - } - - /** - * Sets the value of the updatable property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setUpdatable(final Boolean value) { - this.updatable = value; - } - - /** - * Gets the value of the columnDefinition property. - * - * @return possible object is - * {@link String } - */ - public String getColumnDefinition() { - return columnDefinition; - } - - /** - * Sets the value of the columnDefinition property. - * - * @param value allowed object is - * {@link String } - */ - public void setColumnDefinition(final String value) { - this.columnDefinition = value; - } - - /** - * Gets the value of the table property. - * - * @return possible object is - * {@link String } - */ - public String getTable() { - return table; - } - - /** - * Sets the value of the table property. - * - * @param value allowed object is - * {@link String } - */ - public void setTable(final String value) { - this.table = 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.jpa; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface MapKeyJoinColumn { + * String name() default ""; + * String referencedColumnName() default ""; + * boolean unique() default false; + * boolean nullable() default false; + * boolean insertable() default true; + * boolean updatable() default true; + * String columnDefinition() default ""; + * String table() default ""; + * } + * <p/> + * <p/> + * <p/> + * <p>Java class for map-key-join-column complex type. + * <p/> + * <p>The following schema fragment specifies the expected content contained within this class. + * <p/> + * <pre> + * <complexType name="map-key-join-column"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="referenced-column-name" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="table" type="{http://www.w3.org/2001/XMLSchema}string" /> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "map-key-join-column") +public class MapKeyJoinColumn { + + @XmlAttribute + protected String name; + @XmlAttribute(name = "referenced-column-name") + protected String referencedColumnName; + @XmlAttribute + protected Boolean unique; + @XmlAttribute + protected Boolean nullable; + @XmlAttribute + protected Boolean insertable; + @XmlAttribute + protected Boolean updatable; + @XmlAttribute(name = "column-definition") + protected String columnDefinition; + @XmlAttribute + protected String table; + + /** + * Gets the value of the name property. + * + * @return possible object is + * {@link String } + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value allowed object is + * {@link String } + */ + public void setName(final String value) { + this.name = value; + } + + /** + * Gets the value of the referencedColumnName property. + * + * @return possible object is + * {@link String } + */ + public String getReferencedColumnName() { + return referencedColumnName; + } + + /** + * Sets the value of the referencedColumnName property. + * + * @param value allowed object is + * {@link String } + */ + public void setReferencedColumnName(final String value) { + this.referencedColumnName = value; + } + + /** + * Gets the value of the unique property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isUnique() { + return unique; + } + + /** + * Sets the value of the unique property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setUnique(final Boolean value) { + this.unique = value; + } + + /** + * Gets the value of the nullable property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isNullable() { + return nullable; + } + + /** + * Sets the value of the nullable property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setNullable(final Boolean value) { + this.nullable = value; + } + + /** + * Gets the value of the insertable property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isInsertable() { + return insertable; + } + + /** + * Sets the value of the insertable property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setInsertable(final Boolean value) { + this.insertable = value; + } + + /** + * Gets the value of the updatable property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isUpdatable() { + return updatable; + } + + /** + * Sets the value of the updatable property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setUpdatable(final Boolean value) { + this.updatable = value; + } + + /** + * Gets the value of the columnDefinition property. + * + * @return possible object is + * {@link String } + */ + public String getColumnDefinition() { + return columnDefinition; + } + + /** + * Sets the value of the columnDefinition property. + * + * @param value allowed object is + * {@link String } + */ + public void setColumnDefinition(final String value) { + this.columnDefinition = value; + } + + /** + * Gets the value of the table property. + * + * @return possible object is + * {@link String } + */ + public String getTable() { + return table; + } + + /** + * Sets the value of the table property. + * + * @param value allowed object is + * {@link String } + */ + public void setTable(final String value) { + this.table = value; + } + +}
http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/OrderColumn.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/OrderColumn.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/OrderColumn.java index 96cb5fa..398d0b8 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/OrderColumn.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/jpa/OrderColumn.java @@ -1,171 +1,171 @@ -/** - * 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.jpa; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - - -/** - * @Target({METHOD, FIELD}) @Retention(RUNTIME) - * public @interface OrderColumn { - * String name() default ""; - * boolean nullable() default true; - * boolean insertable() default true; - * boolean updatable() default true; - * String columnDefinition() default ""; - * } - * <p/> - * <p/> - * <p/> - * <p>Java class for order-column complex type. - * <p/> - * <p>The following schema fragment specifies the expected content contained within this class. - * <p/> - * <pre> - * <complexType name="order-column"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> - * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "order-column") -public class OrderColumn { - - @XmlAttribute - protected String name; - @XmlAttribute - protected Boolean nullable; - @XmlAttribute - protected Boolean insertable; - @XmlAttribute - protected Boolean updatable; - @XmlAttribute(name = "column-definition") - protected String columnDefinition; - - /** - * Gets the value of the name property. - * - * @return possible object is - * {@link String } - */ - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value allowed object is - * {@link String } - */ - public void setName(final String value) { - this.name = value; - } - - /** - * Gets the value of the nullable property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isNullable() { - return nullable; - } - - /** - * Sets the value of the nullable property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setNullable(final Boolean value) { - this.nullable = value; - } - - /** - * Gets the value of the insertable property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isInsertable() { - return insertable; - } - - /** - * Sets the value of the insertable property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setInsertable(final Boolean value) { - this.insertable = value; - } - - /** - * Gets the value of the updatable property. - * - * @return possible object is - * {@link Boolean } - */ - public Boolean isUpdatable() { - return updatable; - } - - /** - * Sets the value of the updatable property. - * - * @param value allowed object is - * {@link Boolean } - */ - public void setUpdatable(final Boolean value) { - this.updatable = value; - } - - /** - * Gets the value of the columnDefinition property. - * - * @return possible object is - * {@link String } - */ - public String getColumnDefinition() { - return columnDefinition; - } - - /** - * Sets the value of the columnDefinition property. - * - * @param value allowed object is - * {@link String } - */ - public void setColumnDefinition(final String value) { - this.columnDefinition = 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.jpa; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * @Target({METHOD, FIELD}) @Retention(RUNTIME) + * public @interface OrderColumn { + * String name() default ""; + * boolean nullable() default true; + * boolean insertable() default true; + * boolean updatable() default true; + * String columnDefinition() default ""; + * } + * <p/> + * <p/> + * <p/> + * <p>Java class for order-column complex type. + * <p/> + * <p>The following schema fragment specifies the expected content contained within this class. + * <p/> + * <pre> + * <complexType name="order-column"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="nullable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="insertable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="updatable" type="{http://www.w3.org/2001/XMLSchema}boolean" /> + * <attribute name="column-definition" type="{http://www.w3.org/2001/XMLSchema}string" /> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "order-column") +public class OrderColumn { + + @XmlAttribute + protected String name; + @XmlAttribute + protected Boolean nullable; + @XmlAttribute + protected Boolean insertable; + @XmlAttribute + protected Boolean updatable; + @XmlAttribute(name = "column-definition") + protected String columnDefinition; + + /** + * Gets the value of the name property. + * + * @return possible object is + * {@link String } + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value allowed object is + * {@link String } + */ + public void setName(final String value) { + this.name = value; + } + + /** + * Gets the value of the nullable property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isNullable() { + return nullable; + } + + /** + * Sets the value of the nullable property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setNullable(final Boolean value) { + this.nullable = value; + } + + /** + * Gets the value of the insertable property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isInsertable() { + return insertable; + } + + /** + * Sets the value of the insertable property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setInsertable(final Boolean value) { + this.insertable = value; + } + + /** + * Gets the value of the updatable property. + * + * @return possible object is + * {@link Boolean } + */ + public Boolean isUpdatable() { + return updatable; + } + + /** + * Sets the value of the updatable property. + * + * @param value allowed object is + * {@link Boolean } + */ + public void setUpdatable(final Boolean value) { + this.updatable = value; + } + + /** + * Gets the value of the columnDefinition property. + * + * @return possible object is + * {@link String } + */ + public String getColumnDefinition() { + return columnDefinition; + } + + /** + * Sets the value of the columnDefinition property. + * + * @param value allowed object is + * {@link String } + */ + public void setColumnDefinition(final String value) { + this.columnDefinition = value; + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/CompatibilityDescriptionGroup.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/CompatibilityDescriptionGroup.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/CompatibilityDescriptionGroup.java index 9e2e55f..3b63a54 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/CompatibilityDescriptionGroup.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/CompatibilityDescriptionGroup.java @@ -1,130 +1,130 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.openejb.jee.was.v6.common; - -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlAttribute; -import javax.xml.bind.annotation.XmlType; - -/** - * <p/> - * Java class for CompatibilityDescriptionGroup complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained within - * this class. - * <p/> - * <pre> - * <complexType name="CompatibilityDescriptionGroup"> - * <complexContent> - * <extension base="{common.xmi}DescriptionGroup"> - * <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="largeIcon" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="smallIcon" type="{http://www.w3.org/2001/XMLSchema}string" /> - * </extension> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "CompatibilityDescriptionGroup") -public class CompatibilityDescriptionGroup extends DescriptionGroup { - - @XmlAttribute - protected String description; - @XmlAttribute - protected String displayName; - @XmlAttribute - protected String largeIcon; - @XmlAttribute - protected String smallIcon; - - /** - * 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 displayName property. - * - * @return possible object is {@link String } - */ - public String getDisplayName() { - return displayName; - } - - /** - * Sets the value of the displayName property. - * - * @param value allowed object is {@link String } - */ - public void setDisplayName(final String value) { - this.displayName = value; - } - - /** - * Gets the value of the largeIcon property. - * - * @return possible object is {@link String } - */ - public String getLargeIcon() { - return largeIcon; - } - - /** - * Sets the value of the largeIcon property. - * - * @param value allowed object is {@link String } - */ - public void setLargeIcon(final String value) { - this.largeIcon = value; - } - - /** - * Gets the value of the smallIcon property. - * - * @return possible object is {@link String } - */ - public String getSmallIcon() { - return smallIcon; - } - - /** - * Sets the value of the smallIcon property. - * - * @param value allowed object is {@link String } - */ - public void setSmallIcon(final String value) { - this.smallIcon = value; - } - -} +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.openejb.jee.was.v6.common; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + +/** + * <p/> + * Java class for CompatibilityDescriptionGroup complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained within + * this class. + * <p/> + * <pre> + * <complexType name="CompatibilityDescriptionGroup"> + * <complexContent> + * <extension base="{common.xmi}DescriptionGroup"> + * <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="displayName" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="largeIcon" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="smallIcon" type="{http://www.w3.org/2001/XMLSchema}string" /> + * </extension> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "CompatibilityDescriptionGroup") +public class CompatibilityDescriptionGroup extends DescriptionGroup { + + @XmlAttribute + protected String description; + @XmlAttribute + protected String displayName; + @XmlAttribute + protected String largeIcon; + @XmlAttribute + protected String smallIcon; + + /** + * 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 displayName property. + * + * @return possible object is {@link String } + */ + public String getDisplayName() { + return displayName; + } + + /** + * Sets the value of the displayName property. + * + * @param value allowed object is {@link String } + */ + public void setDisplayName(final String value) { + this.displayName = value; + } + + /** + * Gets the value of the largeIcon property. + * + * @return possible object is {@link String } + */ + public String getLargeIcon() { + return largeIcon; + } + + /** + * Sets the value of the largeIcon property. + * + * @param value allowed object is {@link String } + */ + public void setLargeIcon(final String value) { + this.largeIcon = value; + } + + /** + * Gets the value of the smallIcon property. + * + * @return possible object is {@link String } + */ + public String getSmallIcon() { + return smallIcon; + } + + /** + * Sets the value of the smallIcon property. + * + * @param value allowed object is {@link String } + */ + public void setSmallIcon(final String value) { + this.smallIcon = value; + } + +} http://git-wip-us.apache.org/repos/asf/tomee/blob/6e2a4f7c/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Description.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Description.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Description.java index 67c34c3..d3980fc 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Description.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/Description.java @@ -1,293 +1,293 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.openejb.jee.was.v6.common; - -import 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.xmi.Extension; - -/** - * @since J2EE1.4 The description type is used by a description element to - * provide text describing the parent element. The elements that use this - * type should include any information that the Deployment Component's - * Deployment File file producer wants to provide to the consumer of the - * Deployment Component's Deployment File (i.e., to the Deployer). - * Typically, the tools used by such a Deployment File consumer will - * display the description when processing the parent element that - * contains the description. - * <p/> - * The lang attribute defines the language that the description is - * provided in. The default value is "en" (English). - * <p/> - * <p/> - * <p/> - * Java class for Description complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained - * within this class. - * <p/> - * <pre> - * <complexType name="Description"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element ref="{http://www.omg.org/XMI}Extension"/> - * </choice> - * <attGroup ref="{http://www.omg.org/XMI}ObjectAttribs"/> - * <attribute name="lang" type="{http://www.w3.org/2001/XMLSchema}string" /> - * <attribute name="value" 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 = "Description", propOrder = {"extensions"}) -public class Description { - - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @XmlAttribute - protected String lang; - @XmlAttribute - protected String value; - @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 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 lang property. - * - * @return possible object is {@link String } - */ - public String getLang() { - return lang; - } - - /** - * Sets the value of the lang property. - * - * @param value allowed object is {@link String } - */ - public void setLang(final String value) { - this.lang = value; - } - - /** - * Gets the value of the value property. - * - * @return possible object is {@link String } - */ - public String getValue() { - return value; - } - - /** - * Sets the value of the value property. - * - * @param value allowed object is {@link String } - */ - public void setValue(final String value) { - this.value = value; - } - - /** - * Gets the value of the id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value allowed object is {@link String } - */ - public void setId(final String value) { - this.id = value; - } - - /** - * Gets the value of the type property. - * - * @return possible object is {@link QName } - */ - public QName getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value allowed object is {@link QName } - */ - public void setType(final QName value) { - this.type = value; - } - - /** - * Gets the value of the version property. - * - * @return possible object is {@link String } - */ - public String getVersion() { - if (version == null) { - return "2.0"; - } else { - return version; - } - } - - /** - * Sets the value of the version property. - * - * @param value allowed object is {@link String } - */ - public void setVersion(final String value) { - this.version = value; - } - - /** - * Gets the value of the href property. - * - * @return possible object is {@link String } - */ - public String getHref() { - return href; - } - - /** - * Sets the value of the href property. - * - * @param value allowed object is {@link String } - */ - public void setHref(final String value) { - this.href = value; - } - - /** - * Gets the value of the idref property. - * - * @return possible object is {@link Object } - */ - public Object getIdref() { - return idref; - } - - /** - * Sets the value of the idref property. - * - * @param value allowed object is {@link Object } - */ - public void setIdref(final Object value) { - this.idref = value; - } - - /** - * Gets the value of the label property. - * - * @return possible object is {@link String } - */ - public String getLabel() { - return label; - } - - /** - * Sets the value of the label property. - * - * @param value allowed object is {@link String } - */ - public void setLabel(final String value) { - this.label = value; - } - - /** - * Gets the value of the uuid property. - * - * @return possible object is {@link String } - */ - public String getUuid() { - return uuid; - } - - /** - * Sets the value of the uuid property. - * - * @param value allowed object is {@link String } - */ - public void setUuid(final String value) { - this.uuid = value; - } - -} +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.openejb.jee.was.v6.common; + +import 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.xmi.Extension; + +/** + * @since J2EE1.4 The description type is used by a description element to + * provide text describing the parent element. The elements that use this + * type should include any information that the Deployment Component's + * Deployment File file producer wants to provide to the consumer of the + * Deployment Component's Deployment File (i.e., to the Deployer). + * Typically, the tools used by such a Deployment File consumer will + * display the description when processing the parent element that + * contains the description. + * <p/> + * The lang attribute defines the language that the description is + * provided in. The default value is "en" (English). + * <p/> + * <p/> + * <p/> + * Java class for Description complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained + * within this class. + * <p/> + * <pre> + * <complexType name="Description"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element ref="{http://www.omg.org/XMI}Extension"/> + * </choice> + * <attGroup ref="{http://www.omg.org/XMI}ObjectAttribs"/> + * <attribute name="lang" type="{http://www.w3.org/2001/XMLSchema}string" /> + * <attribute name="value" 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 = "Description", propOrder = {"extensions"}) +public class Description { + + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @XmlAttribute + protected String lang; + @XmlAttribute + protected String value; + @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 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 lang property. + * + * @return possible object is {@link String } + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value allowed object is {@link String } + */ + public void setLang(final String value) { + this.lang = value; + } + + /** + * Gets the value of the value property. + * + * @return possible object is {@link String } + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value allowed object is {@link String } + */ + public void setValue(final String value) { + this.value = 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/common/DescriptionGroup.java ---------------------------------------------------------------------- diff --git a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/DescriptionGroup.java b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/DescriptionGroup.java index 558393e..2a21ff9 100644 --- a/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/DescriptionGroup.java +++ b/container/openejb-jee/src/main/java/org/apache/openejb/jee/was/v6/common/DescriptionGroup.java @@ -1,340 +1,340 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.openejb.jee.was.v6.common; - -import 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.xmi.Extension; - -/** - * @since J2EE1.4 This group keeps the usage of the contained description - * related elements consistent across J2EE deployment descriptors. - * <p/> - * <p/> - * <p/> - * Java class for DescriptionGroup complex type. - * <p/> - * <p/> - * The following schema fragment specifies the expected content contained - * within this class. - * <p/> - * <pre> - * <complexType name="DescriptionGroup"> - * <complexContent> - * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> - * <choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="icons" type="{common.xmi}IconType"/> - * </choice> - * <choice maxOccurs="unbounded" minOccurs="0"> - * <element name="displayNames" type="{common.xmi}DisplayName"/> - * </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 ref="{http://www.omg.org/XMI}id"/> - * </restriction> - * </complexContent> - * </complexType> - * </pre> - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "DescriptionGroup", propOrder = {"icons", "displayNames", - "descriptions", "extensions"}) -public class DescriptionGroup { - - protected List<IconType> icons; - protected List<DisplayName> displayNames; - protected List<Description> descriptions; - @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") - protected List<Extension> extensions; - @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 icons 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 icons property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getIcons().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list {@link IconType } - */ - public List<IconType> getIcons() { - if (icons == null) { - icons = new ArrayList<IconType>(); - } - return this.icons; - } - - /** - * Gets the value of the displayNames 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 displayNames property. - * <p/> - * <p/> - * For example, to add a new item, do as follows: - * <p/> - * <pre> - * getDisplayNames().add(newItem); - * </pre> - * <p/> - * <p/> - * <p/> - * Objects of the following type(s) are allowed in the list - * {@link DisplayName } - */ - public List<DisplayName> getDisplayNames() { - if (displayNames == null) { - displayNames = new ArrayList<DisplayName>(); - } - return this.displayNames; - } - - /** - * 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 id property. - * - * @return possible object is {@link String } - */ - public String getId() { - return id; - } - - /** - * Sets the value of the id property. - * - * @param value allowed object is {@link String } - */ - public void setId(final String value) { - this.id = value; - } - - /** - * Gets the value of the type property. - * - * @return possible object is {@link QName } - */ - public QName getType() { - return type; - } - - /** - * Sets the value of the type property. - * - * @param value allowed object is {@link QName } - */ - public void setType(final QName value) { - this.type = value; - } - - /** - * Gets the value of the version property. - * - * @return possible object is {@link String } - */ - public String getVersion() { - if (version == null) { - return "2.0"; - } else { - return version; - } - } - - /** - * Sets the value of the version property. - * - * @param value allowed object is {@link String } - */ - public void setVersion(final String value) { - this.version = value; - } - - /** - * Gets the value of the href property. - * - * @return possible object is {@link String } - */ - public String getHref() { - return href; - } - - /** - * Sets the value of the href property. - * - * @param value allowed object is {@link String } - */ - public void setHref(final String value) { - this.href = value; - } - - /** - * Gets the value of the idref property. - * - * @return possible object is {@link Object } - */ - public Object getIdref() { - return idref; - } - - /** - * Sets the value of the idref property. - * - * @param value allowed object is {@link Object } - */ - public void setIdref(final Object value) { - this.idref = value; - } - - /** - * Gets the value of the label property. - * - * @return possible object is {@link String } - */ - public String getLabel() { - return label; - } - - /** - * Sets the value of the label property. - * - * @param value allowed object is {@link String } - */ - public void setLabel(final String value) { - this.label = value; - } - - /** - * Gets the value of the uuid property. - * - * @return possible object is {@link String } - */ - public String getUuid() { - return uuid; - } - - /** - * Sets the value of the uuid property. - * - * @param value allowed object is {@link String } - */ - public void setUuid(final String value) { - this.uuid = value; - } - -} +/** + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.openejb.jee.was.v6.common; + +import 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.xmi.Extension; + +/** + * @since J2EE1.4 This group keeps the usage of the contained description + * related elements consistent across J2EE deployment descriptors. + * <p/> + * <p/> + * <p/> + * Java class for DescriptionGroup complex type. + * <p/> + * <p/> + * The following schema fragment specifies the expected content contained + * within this class. + * <p/> + * <pre> + * <complexType name="DescriptionGroup"> + * <complexContent> + * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> + * <choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="icons" type="{common.xmi}IconType"/> + * </choice> + * <choice maxOccurs="unbounded" minOccurs="0"> + * <element name="displayNames" type="{common.xmi}DisplayName"/> + * </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 ref="{http://www.omg.org/XMI}id"/> + * </restriction> + * </complexContent> + * </complexType> + * </pre> + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "DescriptionGroup", propOrder = {"icons", "displayNames", + "descriptions", "extensions"}) +public class DescriptionGroup { + + protected List<IconType> icons; + protected List<DisplayName> displayNames; + protected List<Description> descriptions; + @XmlElement(name = "Extension", namespace = "http://www.omg.org/XMI") + protected List<Extension> extensions; + @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 icons 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 icons property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getIcons().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list {@link IconType } + */ + public List<IconType> getIcons() { + if (icons == null) { + icons = new ArrayList<IconType>(); + } + return this.icons; + } + + /** + * Gets the value of the displayNames 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 displayNames property. + * <p/> + * <p/> + * For example, to add a new item, do as follows: + * <p/> + * <pre> + * getDisplayNames().add(newItem); + * </pre> + * <p/> + * <p/> + * <p/> + * Objects of the following type(s) are allowed in the list + * {@link DisplayName } + */ + public List<DisplayName> getDisplayNames() { + if (displayNames == null) { + displayNames = new ArrayList<DisplayName>(); + } + return this.displayNames; + } + + /** + * 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 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; + } + +}