001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.oejb2;
017:
018: import java.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.JAXBElement;
021: import javax.xml.bind.annotation.XmlAccessType;
022: import javax.xml.bind.annotation.XmlAccessorType;
023: import javax.xml.bind.annotation.XmlAttribute;
024: import javax.xml.bind.annotation.XmlElementRef;
025: import javax.xml.bind.annotation.XmlElementRefs;
026: import javax.xml.bind.annotation.XmlType;
027:
028: /**
029: * <p>Java class for gbeanType complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="gbeanType">
035: * <complexContent>
036: * <extension base="{http://geronimo.apache.org/xml/ns/deployment-1.2}abstract-serviceType">
037: * <choice maxOccurs="unbounded" minOccurs="0">
038: * <element name="attribute" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}attributeType"/>
039: * <element name="xml-attribute" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}xml-attributeType"/>
040: * <element name="reference" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}referenceType"/>
041: * <element name="references" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}referencesType"/>
042: * <element name="xml-reference" type="{http://geronimo.apache.org/xml/ns/deployment-1.2}xml-attributeType"/>
043: * <element name="dependency" type="{http://geronimo.apache.org/xml/ns/naming-1.2}patternType"/>
044: * </choice>
045: * <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
046: * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
047: * </extension>
048: * </complexContent>
049: * </complexType>
050: * </pre>
051: *
052: *
053: */
054: @XmlAccessorType(XmlAccessType.FIELD)
055: @XmlType(name="gbeanType",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",propOrder={"attributeOrXmlAttributeOrReference"})
056: public class GbeanType extends AbstractServiceType {
057:
058: @XmlElementRefs({@XmlElementRef(name="reference",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class),@XmlElementRef(name="attribute",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class),@XmlElementRef(name="xml-attribute",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class),@XmlElementRef(name="xml-reference",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class),@XmlElementRef(name="dependency",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class),@XmlElementRef(name="references",namespace="http://geronimo.apache.org/xml/ns/deployment-1.2",type=JAXBElement.class)})
059: protected List<JAXBElement<?>> attributeOrXmlAttributeOrReference;
060: @XmlAttribute(name="class",required=true)
061: protected String clazz;
062: @XmlAttribute(required=true)
063: protected String name;
064:
065: /**
066: * Gets the value of the attributeOrXmlAttributeOrReference property.
067: *
068: * <p>
069: * This accessor method returns a reference to the live list,
070: * not a snapshot. Therefore any modification you make to the
071: * returned list will be present inside the JAXB object.
072: * This is why there is not a <CODE>set</CODE> method for the attributeOrXmlAttributeOrReference property.
073: *
074: * <p>
075: * For example, to add a new item, do as follows:
076: * <pre>
077: * getAttributeOrXmlAttributeOrReference().add(newItem);
078: * </pre>
079: *
080: *
081: * <p>
082: * Objects of the following type(s) are allowed in the list
083: * {@link JAXBElement }{@code <}{@link XmlAttributeType }{@code >}
084: * {@link JAXBElement }{@code <}{@link ReferenceType }{@code >}
085: * {@link JAXBElement }{@code <}{@link PatternType }{@code >}
086: * {@link JAXBElement }{@code <}{@link AttributeType }{@code >}
087: * {@link JAXBElement }{@code <}{@link XmlAttributeType }{@code >}
088: * {@link JAXBElement }{@code <}{@link ReferencesType }{@code >}
089: *
090: *
091: */
092: public List<JAXBElement<?>> getAttributeOrXmlAttributeOrReference() {
093: if (attributeOrXmlAttributeOrReference == null) {
094: attributeOrXmlAttributeOrReference = new ArrayList<JAXBElement<?>>();
095: }
096: return this .attributeOrXmlAttributeOrReference;
097: }
098:
099: /**
100: * Gets the value of the clazz property.
101: *
102: * @return
103: * possible object is
104: * {@link String }
105: *
106: */
107: public String getClazz() {
108: return clazz;
109: }
110:
111: /**
112: * Sets the value of the clazz property.
113: *
114: * @param value
115: * allowed object is
116: * {@link String }
117: *
118: */
119: public void setClazz(String value) {
120: this .clazz = value;
121: }
122:
123: /**
124: * Gets the value of the name property.
125: *
126: * @return
127: * possible object is
128: * {@link String }
129: *
130: */
131: public String getName() {
132: return name;
133: }
134:
135: /**
136: * Sets the value of the name property.
137: *
138: * @param value
139: * allowed object is
140: * {@link String }
141: *
142: */
143: public void setName(String value) {
144: this.name = value;
145: }
146:
147: }
|