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.wls;
017:
018: import javax.xml.bind.annotation.XmlAccessorType;
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlType;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlAttribute;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import java.util.List;
027: import java.util.ArrayList;
028:
029: /**
030: * <p>Java class for resource-description complex type.
031: *
032: * <p>The following schema fragment specifies the expected content contained within this class.
033: *
034: * <pre>
035: * <complexType name="resource-description">
036: * <complexContent>
037: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
038: * <sequence>
039: * <element name="res-ref-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * <group ref="{http://www.bea.com/ns/weblogic/90}resource-lookup"/>
041: * </sequence>
042: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
043: * </restriction>
044: * </complexContent>
045: * </complexType>
046: * </pre>
047: *
048: *
049: */
050: @XmlAccessorType(XmlAccessType.FIELD)
051: @XmlType(name="reference-descriptor",propOrder={"resourceDescription","resourceEnvDescription","ejbReferenceDescription","serviceReferenceDescription"})
052: public class ReferenceDescriptor {
053:
054: @XmlElement(name="resource-description")
055: protected List<ResourceDescription> resourceDescription;
056:
057: @XmlElement(name="resource-env-description")
058: protected List<ResourceEnvDescription> resourceEnvDescription;
059:
060: @XmlElement(name="ejb-reference-description")
061: protected List<EjbReferenceDescription> ejbReferenceDescription;
062:
063: @XmlElement(name="service-reference-description")
064: protected List<ServiceReferenceDescription> serviceReferenceDescription;
065:
066: @XmlAttribute
067: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
068: @XmlID
069: protected String id;
070:
071: /**
072: * Gets the value of the resourceDescription property.
073: *
074: * <p>
075: * This accessor method returns a reference to the live list,
076: * not a snapshot. Therefore any modification you make to the
077: * returned list will be present inside the JAXB object.
078: * This is why there is not a <CODE>set</CODE> method for the resourceDescription property.
079: *
080: * <p>
081: * For example, to add a new item, do as follows:
082: * <pre>
083: * getResourceDescription().add(newItem);
084: * </pre>
085: *
086: *
087: * <p>
088: * Objects of the following type(s) are allowed in the list
089: * {@link ResourceDescription }
090: *
091: *
092: */
093: public List<ResourceDescription> getResourceDescription() {
094: if (resourceDescription == null) {
095: resourceDescription = new ArrayList<ResourceDescription>();
096: }
097: return this .resourceDescription;
098: }
099:
100: /**
101: * Gets the value of the resourceEnvDescription property.
102: *
103: * <p>
104: * This accessor method returns a reference to the live list,
105: * not a snapshot. Therefore any modification you make to the
106: * returned list will be present inside the JAXB object.
107: * This is why there is not a <CODE>set</CODE> method for the resourceEnvDescription property.
108: *
109: * <p>
110: * For example, to add a new item, do as follows:
111: * <pre>
112: * getResourceEnvDescription().add(newItem);
113: * </pre>
114: *
115: *
116: * <p>
117: * Objects of the following type(s) are allowed in the list
118: * {@link ResourceEnvDescription }
119: *
120: *
121: */
122: public List<ResourceEnvDescription> getResourceEnvDescription() {
123: if (resourceEnvDescription == null) {
124: resourceEnvDescription = new ArrayList<ResourceEnvDescription>();
125: }
126: return this .resourceEnvDescription;
127: }
128:
129: /**
130: * Gets the value of the ejbReferenceDescription property.
131: *
132: * <p>
133: * This accessor method returns a reference to the live list,
134: * not a snapshot. Therefore any modification you make to the
135: * returned list will be present inside the JAXB object.
136: * This is why there is not a <CODE>set</CODE> method for the ejbReferenceDescription property.
137: *
138: * <p>
139: * For example, to add a new item, do as follows:
140: * <pre>
141: * getEjbReferenceDescription().add(newItem);
142: * </pre>
143: *
144: *
145: * <p>
146: * Objects of the following type(s) are allowed in the list
147: * {@link EjbReferenceDescription }
148: *
149: *
150: */
151: public List<EjbReferenceDescription> getEjbReferenceDescription() {
152: if (ejbReferenceDescription == null) {
153: ejbReferenceDescription = new ArrayList<EjbReferenceDescription>();
154: }
155: return this .ejbReferenceDescription;
156: }
157:
158: /**
159: * Gets the value of the serviceReferenceDescription property.
160: *
161: * <p>
162: * This accessor method returns a reference to the live list,
163: * not a snapshot. Therefore any modification you make to the
164: * returned list will be present inside the JAXB object.
165: * This is why there is not a <CODE>set</CODE> method for the serviceReferenceDescription property.
166: *
167: * <p>
168: * For example, to add a new item, do as follows:
169: * <pre>
170: * getServiceReferenceDescription().add(newItem);
171: * </pre>
172: *
173: *
174: * <p>
175: * Objects of the following type(s) are allowed in the list
176: * {@link ServiceReferenceDescription }
177: *
178: *
179: */
180: public List<ServiceReferenceDescription> getServiceReferenceDescription() {
181: if (serviceReferenceDescription == null) {
182: serviceReferenceDescription = new ArrayList<ServiceReferenceDescription>();
183: }
184: return this .serviceReferenceDescription;
185: }
186:
187: /**
188: * Gets the value of the id property.
189: *
190: * @return
191: * possible object is
192: * {@link String }
193: *
194: */
195: public String getId() {
196: return id;
197: }
198:
199: /**
200: * Sets the value of the id property.
201: *
202: * @param value
203: * allowed object is
204: * {@link String }
205: *
206: */
207: public void setId(String value) {
208: this.id = value;
209: }
210:
211: }
|