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.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlID;
023: import javax.xml.bind.annotation.XmlType;
024: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
025: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
026:
027: /**
028: * <p>Java class for message-destination-descriptor complex type.
029: *
030: * <p>The following schema fragment specifies the expected content contained within this class.
031: *
032: * <pre>
033: * <complexType name="message-destination-descriptor">
034: * <complexContent>
035: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036: * <sequence>
037: * <element name="message-destination-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
038: * <choice>
039: * <sequence>
040: * <element name="destination-jndi-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
041: * <element name="initial-context-factory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
042: * <element name="provider-url" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
043: * </sequence>
044: * <element name="destination-resource-link" type="{http://www.w3.org/2001/XMLSchema}string"/>
045: * </choice>
046: * </sequence>
047: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
048: * </restriction>
049: * </complexContent>
050: * </complexType>
051: * </pre>
052: *
053: *
054: */
055: @XmlAccessorType(XmlAccessType.FIELD)
056: @XmlType(name="message-destination-descriptor",propOrder={"messageDestinationName","destinationJndiName","initialContextFactory","providerUrl","destinationResourceLink"})
057: public class MessageDestinationDescriptor {
058:
059: @XmlElement(name="message-destination-name",required=true)
060: protected String messageDestinationName;
061: @XmlElement(name="destination-jndi-name")
062: protected String destinationJndiName;
063: @XmlElement(name="initial-context-factory")
064: protected String initialContextFactory;
065: @XmlElement(name="provider-url")
066: protected String providerUrl;
067: @XmlElement(name="destination-resource-link")
068: protected String destinationResourceLink;
069: @XmlAttribute
070: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
071: @XmlID
072: protected String id;
073:
074: /**
075: * Gets the value of the messageDestinationName property.
076: *
077: * @return
078: * possible object is
079: * {@link String }
080: *
081: */
082: public String getMessageDestinationName() {
083: return messageDestinationName;
084: }
085:
086: /**
087: * Sets the value of the messageDestinationName property.
088: *
089: * @param value
090: * allowed object is
091: * {@link String }
092: *
093: */
094: public void setMessageDestinationName(String value) {
095: this .messageDestinationName = value;
096: }
097:
098: /**
099: * Gets the value of the destinationJndiName property.
100: *
101: * @return
102: * possible object is
103: * {@link String }
104: *
105: */
106: public String getDestinationJndiName() {
107: return destinationJndiName;
108: }
109:
110: /**
111: * Sets the value of the destinationJndiName property.
112: *
113: * @param value
114: * allowed object is
115: * {@link String }
116: *
117: */
118: public void setDestinationJndiName(String value) {
119: this .destinationJndiName = value;
120: }
121:
122: /**
123: * Gets the value of the initialContextFactory property.
124: *
125: * @return
126: * possible object is
127: * {@link String }
128: *
129: */
130: public String getInitialContextFactory() {
131: return initialContextFactory;
132: }
133:
134: /**
135: * Sets the value of the initialContextFactory property.
136: *
137: * @param value
138: * allowed object is
139: * {@link String }
140: *
141: */
142: public void setInitialContextFactory(String value) {
143: this .initialContextFactory = value;
144: }
145:
146: /**
147: * Gets the value of the providerUrl property.
148: *
149: * @return
150: * possible object is
151: * {@link String }
152: *
153: */
154: public String getProviderUrl() {
155: return providerUrl;
156: }
157:
158: /**
159: * Sets the value of the providerUrl property.
160: *
161: * @param value
162: * allowed object is
163: * {@link String }
164: *
165: */
166: public void setProviderUrl(String value) {
167: this .providerUrl = value;
168: }
169:
170: /**
171: * Gets the value of the destinationResourceLink property.
172: *
173: * @return
174: * possible object is
175: * {@link String }
176: *
177: */
178: public String getDestinationResourceLink() {
179: return destinationResourceLink;
180: }
181:
182: /**
183: * Sets the value of the destinationResourceLink property.
184: *
185: * @param value
186: * allowed object is
187: * {@link String }
188: *
189: */
190: public void setDestinationResourceLink(String value) {
191: this .destinationResourceLink = value;
192: }
193:
194: /**
195: * Gets the value of the id property.
196: *
197: * @return
198: * possible object is
199: * {@link String }
200: *
201: */
202: public String getId() {
203: return id;
204: }
205:
206: /**
207: * Sets the value of the id property.
208: *
209: * @param value
210: * allowed object is
211: * {@link String }
212: *
213: */
214: public void setId(String value) {
215: this.id = value;
216: }
217:
218: }
|