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;
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.XmlRootElement;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: @XmlAccessorType(XmlAccessType.FIELD)
029: @XmlType(name="",propOrder={"destinationType","subscriptionDurability"})
030: @XmlRootElement(name="message-driven-destination")
031: public class MessageDrivenDestination {
032:
033: @XmlAttribute
034: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
035: @XmlID
036: protected String id;
037: @XmlElement(name="destination-type",required=true)
038: protected DestinationType destinationType;
039: @XmlElement(name="subscription-durability")
040: protected SubscriptionDurability subscriptionDurability;
041:
042: /**
043: * Gets the value of the id property.
044: *
045: * @return
046: * possible object is
047: * {@link String }
048: *
049: */
050: public String getId() {
051: return id;
052: }
053:
054: /**
055: * Sets the value of the id property.
056: *
057: * @param value
058: * allowed object is
059: * {@link String }
060: *
061: */
062: public void setId(String value) {
063: this .id = value;
064: }
065:
066: /**
067: * Gets the value of the destinationType property.
068: *
069: * @return
070: * possible object is
071: * {@link DestinationType }
072: *
073: */
074: public DestinationType getDestinationType() {
075: return destinationType;
076: }
077:
078: /**
079: * Sets the value of the destinationType property.
080: *
081: * @param value
082: * allowed object is
083: * {@link DestinationType }
084: *
085: */
086: public void setDestinationType(DestinationType value) {
087: this .destinationType = value;
088: }
089:
090: /**
091: * Gets the value of the subscriptionDurability property.
092: *
093: * @return
094: * possible object is
095: * {@link SubscriptionDurability }
096: *
097: */
098: public SubscriptionDurability getSubscriptionDurability() {
099: return subscriptionDurability;
100: }
101:
102: /**
103: * Sets the value of the subscriptionDurability property.
104: *
105: * @param value
106: * allowed object is
107: * {@link SubscriptionDurability }
108: *
109: */
110: public void setSubscriptionDurability(SubscriptionDurability value) {
111: this.subscriptionDurability = value;
112: }
113: }
|