001: /**
002: * EasyBeans
003: * Copyright (C) 2007 Bull S.A.S.
004: * Contact: easybeans@ow2.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: MessageDestinationRef.java 1970 2007-10-16 11:49:25Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.deployment.xml.struct.common;
025:
026: /**
027: * Class representing message-destination-ref elements used in Java EE components.
028: * @author Florent Benoit
029: */
030: public class MessageDestinationRef extends AbsResourceGroup {
031:
032: /**
033: * Name of this element.
034: */
035: public static final String NAME = "message-destination-ref";
036:
037: /**
038: * Name of this message-destination-ref.
039: */
040: private String name = null;
041:
042: /**
043: * Type of this message-destination-ref.
044: */
045: private String type = null;
046:
047: /**
048: * Usage of this message-destination-ref.
049: */
050: private String usage = null;
051:
052: /**
053: * Link of this message-destination-ref.
054: */
055: private String link = null;
056:
057: /**
058: * Default constructor.
059: */
060: public MessageDestinationRef() {
061: super ();
062: }
063:
064: /**
065: * @return name of this message-destination-ref.
066: */
067: public String getName() {
068: return name;
069: }
070:
071: /**
072: * Sets the name of message-destination-ref.
073: * @param name the name of this reference
074: */
075: public void setName(final String name) {
076: this .name = name;
077: }
078:
079: /**
080: * @return type of this message-destination-ref.
081: */
082: public String getType() {
083: return type;
084: }
085:
086: /**
087: * Sets the type of message-destination-ref.
088: * @param type the type of this reference
089: */
090: public void setType(final String type) {
091: this .type = type;
092: }
093:
094: /**
095: * @return usage of this message-destination-ref.
096: */
097: public String getUsage() {
098: return usage;
099: }
100:
101: /**
102: * Sets the usage of message-destination-ref.
103: * @param usage the usage of this reference
104: */
105: public void setUsage(final String usage) {
106: this .usage = usage;
107: }
108:
109: /**
110: * @return link of this message-destination-ref.
111: */
112: public String getLink() {
113: return link;
114: }
115:
116: /**
117: * Sets the link of message-destination-ref.
118: * @param link the link of this reference
119: */
120: public void setLink(final String link) {
121: // TODO: add support
122: if (link != null) {
123: throw new UnsupportedOperationException(
124: "The message-destination-link element is not supported by EasyBeans");
125: }
126: this.link = link;
127: }
128:
129: }
|