View Javadoc

1   /*
2    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3    *
4    * Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.
5    *
6    * The contents of this file are subject to the terms of either the GNU
7    * General Public License Version 2 only ("GPL") or the Common Development
8    * and Distribution License("CDDL") (collectively, the "License").  You
9    * may not use this file except in compliance with the License.  You can
10   * obtain a copy of the License at
11   * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
12   * or packager/legal/LICENSE.txt.  See the License for the specific
13   * language governing permissions and limitations under the License.
14   *
15   * When distributing the software, include this License Header Notice in each
16   * file and include the License file at packager/legal/LICENSE.txt.
17   *
18   * GPL Classpath Exception:
19   * Oracle designates this particular file as subject to the "Classpath"
20   * exception as provided by Oracle in the GPL Version 2 section of the License
21   * file that accompanied this code.
22   *
23   * Modifications:
24   * If applicable, add the following below the License Header, with the fields
25   * enclosed by brackets [] replaced by your own identifying information:
26   * "Portions Copyright [year] [name of copyright owner]"
27   *
28   * Contributor(s):
29   * If you wish your version of this file to be governed by only the CDDL or
30   * only the GPL Version 2, indicate your decision by adding "[Contributor]
31   * elects to include this software in this distribution under the [CDDL or GPL
32   * Version 2] license."  If you don't indicate a single choice of license, a
33   * recipient has the option to distribute your version of this file under
34   * either the CDDL, the GPL Version 2 or to extend the choice of license to
35   * its licensees as provided above.  However, if you add GPL Version 2 code
36   * and therefore, elected the GPL Version 2 license, then the option applies
37   * only if the new code is made subject to such option by the copyright
38   * holder.
39   */
40  
41  package com.sun.grizzly.http.webxml.schema.version_2_4;
42  
43  import java.util.ArrayList;
44  import java.util.List;
45  import javax.xml.bind.annotation.XmlAccessType;
46  import javax.xml.bind.annotation.XmlAccessorType;
47  import javax.xml.bind.annotation.XmlAttribute;
48  import javax.xml.bind.annotation.XmlElement;
49  import javax.xml.bind.annotation.XmlID;
50  import javax.xml.bind.annotation.XmlSchemaType;
51  import javax.xml.bind.annotation.XmlType;
52  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
53  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
54  
55  
56  /**
57   * 
58   * 	
59   * 
60   * 	  The message-destination-ref element contains a declaration
61   * 	  of Deployment Component's reference to a message destination
62   * 	  associated with a resource in Deployment Component's
63   * 	  environment. It consists of:
64   * 
65   * 		  - an optional description
66   * 		  - the message destination reference name
67   * 		  - the message destination type
68   * 		  - a specification as to whether the
69   * 		    destination is used for
70   * 		    consuming or producing messages, or both
71   * 		  - a link to the message destination
72   * 
73   * 	  Examples:
74   * 
75   * 	  <message-destination-ref>
76   * 		  <message-destination-ref-name>jms/StockQueue
77   * 		  </message-destination-ref-name>
78   * 		  <message-destination-type>javax.jms.Queue
79   * 		  </message-destination-type>
80   * 		  <message-destination-usage>Consumes
81   * 		  </message-destination-usage>
82   * 		  <message-destination-link>CorporateStocks
83   * 		  </message-destination-link>
84   * 	  </message-destination-ref>
85   * 
86   * 	  
87   *       
88   * 
89   * <p>Java class for message-destination-refType complex type.
90   * 
91   * <p>The following schema fragment specifies the expected content contained within this class.
92   * 
93   * <pre>
94   * &lt;complexType name="message-destination-refType">
95   *   &lt;complexContent>
96   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
97   *       &lt;sequence>
98   *         &lt;element name="description" type="{http://java.sun.com/xml/ns/j2ee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
99   *         &lt;element name="message-destination-ref-name" type="{http://java.sun.com/xml/ns/j2ee}jndi-nameType"/>
100  *         &lt;element name="message-destination-type" type="{http://java.sun.com/xml/ns/j2ee}message-destination-typeType"/>
101  *         &lt;element name="message-destination-usage" type="{http://java.sun.com/xml/ns/j2ee}message-destination-usageType"/>
102  *         &lt;element name="message-destination-link" type="{http://java.sun.com/xml/ns/j2ee}message-destination-linkType" minOccurs="0"/>
103  *       &lt;/sequence>
104  *       &lt;attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
105  *     &lt;/restriction>
106  *   &lt;/complexContent>
107  * &lt;/complexType>
108  * </pre>
109  * 
110  * 
111  */
112 @XmlAccessorType(XmlAccessType.FIELD)
113 @XmlType(name = "message-destination-refType", propOrder = {
114     "description",
115     "messageDestinationRefName",
116     "messageDestinationType",
117     "messageDestinationUsage",
118     "messageDestinationLink"
119 })
120 public class MessageDestinationRefType {
121 
122     protected List<DescriptionType> description;
123     @XmlElement(name = "message-destination-ref-name", required = true)
124     protected JndiNameType messageDestinationRefName;
125     @XmlElement(name = "message-destination-type", required = true)
126     protected MessageDestinationTypeType messageDestinationType;
127     @XmlElement(name = "message-destination-usage", required = true)
128     protected MessageDestinationUsageType messageDestinationUsage;
129     @XmlElement(name = "message-destination-link")
130     protected MessageDestinationLinkType messageDestinationLink;
131     @XmlAttribute
132     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
133     @XmlID
134     @XmlSchemaType(name = "ID")
135     protected java.lang.String id;
136 
137     /**
138      * Gets the value of the description property.
139      * 
140      * <p>
141      * This accessor method returns a reference to the live list,
142      * not a snapshot. Therefore any modification you make to the
143      * returned list will be present inside the JAXB object.
144      * This is why there is not a <CODE>set</CODE> method for the description property.
145      * 
146      * <p>
147      * For example, to add a new item, do as follows:
148      * <pre>
149      *    getDescription().add(newItem);
150      * </pre>
151      * 
152      * 
153      * <p>
154      * Objects of the following type(s) are allowed in the list
155      * {@link DescriptionType }
156      * 
157      * 
158      */
159     public List<DescriptionType> getDescription() {
160         if (description == null) {
161             description = new ArrayList<DescriptionType>();
162         }
163         return this.description;
164     }
165 
166     /**
167      * Gets the value of the messageDestinationRefName property.
168      * 
169      * @return
170      *     possible object is
171      *     {@link JndiNameType }
172      *     
173      */
174     public JndiNameType getMessageDestinationRefName() {
175         return messageDestinationRefName;
176     }
177 
178     /**
179      * Sets the value of the messageDestinationRefName property.
180      * 
181      * @param value
182      *     allowed object is
183      *     {@link JndiNameType }
184      *     
185      */
186     public void setMessageDestinationRefName(JndiNameType value) {
187         this.messageDestinationRefName = value;
188     }
189 
190     /**
191      * Gets the value of the messageDestinationType property.
192      * 
193      * @return
194      *     possible object is
195      *     {@link MessageDestinationTypeType }
196      *     
197      */
198     public MessageDestinationTypeType getMessageDestinationType() {
199         return messageDestinationType;
200     }
201 
202     /**
203      * Sets the value of the messageDestinationType property.
204      * 
205      * @param value
206      *     allowed object is
207      *     {@link MessageDestinationTypeType }
208      *     
209      */
210     public void setMessageDestinationType(MessageDestinationTypeType value) {
211         this.messageDestinationType = value;
212     }
213 
214     /**
215      * Gets the value of the messageDestinationUsage property.
216      * 
217      * @return
218      *     possible object is
219      *     {@link MessageDestinationUsageType }
220      *     
221      */
222     public MessageDestinationUsageType getMessageDestinationUsage() {
223         return messageDestinationUsage;
224     }
225 
226     /**
227      * Sets the value of the messageDestinationUsage property.
228      * 
229      * @param value
230      *     allowed object is
231      *     {@link MessageDestinationUsageType }
232      *     
233      */
234     public void setMessageDestinationUsage(MessageDestinationUsageType value) {
235         this.messageDestinationUsage = value;
236     }
237 
238     /**
239      * Gets the value of the messageDestinationLink property.
240      * 
241      * @return
242      *     possible object is
243      *     {@link MessageDestinationLinkType }
244      *     
245      */
246     public MessageDestinationLinkType getMessageDestinationLink() {
247         return messageDestinationLink;
248     }
249 
250     /**
251      * Sets the value of the messageDestinationLink property.
252      * 
253      * @param value
254      *     allowed object is
255      *     {@link MessageDestinationLinkType }
256      *     
257      */
258     public void setMessageDestinationLink(MessageDestinationLinkType value) {
259         this.messageDestinationLink = value;
260     }
261 
262     /**
263      * Gets the value of the id property.
264      * 
265      * @return
266      *     possible object is
267      *     {@link java.lang.String }
268      *     
269      */
270     public java.lang.String getId() {
271         return id;
272     }
273 
274     /**
275      * Sets the value of the id property.
276      * 
277      * @param value
278      *     allowed object is
279      *     {@link java.lang.String }
280      *     
281      */
282     public void setId(java.lang.String value) {
283         this.id = value;
284     }
285 
286 }