KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > deploy > MessageDestinationRef


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18
19 package org.apache.catalina.deploy;
20
21 import java.io.Serializable JavaDoc;
22
23
24 /**
25  * <p>Representation of a message destination reference for a web application,
26  * as represented in a <code>&lt;message-destination-ref&gt;</code> element
27  * in the deployment descriptor.</p>
28  *
29  * @author Craig R. McClanahan
30  * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
31  * @since Tomcat 5.0
32  */

33
34 public class MessageDestinationRef implements Serializable JavaDoc {
35
36
37     // ------------------------------------------------------------- Properties
38

39
40     /**
41      * The description of this destination ref.
42      */

43     private String JavaDoc description = null;
44
45     public String JavaDoc getDescription() {
46         return (this.description);
47     }
48
49     public void setDescription(String JavaDoc description) {
50         this.description = description;
51     }
52
53
54     /**
55      * The link of this destination ref.
56      */

57     private String JavaDoc link = null;
58
59     public String JavaDoc getLink() {
60         return (this.link);
61     }
62
63     public void setLink(String JavaDoc link) {
64         this.link = link;
65     }
66
67
68     /**
69      * The name of this destination ref.
70      */

71     private String JavaDoc name = null;
72
73     public String JavaDoc getName() {
74         return (this.name);
75     }
76
77     public void setName(String JavaDoc name) {
78         this.name = name;
79     }
80
81
82     /**
83      * The type of this destination ref.
84      */

85     private String JavaDoc type = null;
86
87     public String JavaDoc getType() {
88         return (this.type);
89     }
90
91     public void setType(String JavaDoc type) {
92         this.type = type;
93     }
94
95
96     /**
97      * The usage of this destination ref.
98      */

99     private String JavaDoc usage = null;
100
101     public String JavaDoc getUsage() {
102         return (this.usage);
103     }
104
105     public void setUsage(String JavaDoc usage) {
106         this.usage = usage;
107     }
108
109
110     // --------------------------------------------------------- Public Methods
111

112
113     /**
114      * Return a String representation of this object.
115      */

116     public String JavaDoc toString() {
117
118         StringBuffer JavaDoc sb = new StringBuffer JavaDoc("MessageDestination[");
119         sb.append("name=");
120         sb.append(name);
121         if (link != null) {
122             sb.append(", link=");
123             sb.append(link);
124         }
125         if (type != null) {
126             sb.append(", type=");
127             sb.append(type);
128         }
129         if (usage != null) {
130             sb.append(", usage=");
131             sb.append(usage);
132         }
133         if (description != null) {
134             sb.append(", description=");
135             sb.append(description);
136         }
137         sb.append("]");
138         return (sb.toString());
139
140     }
141
142
143     // -------------------------------------------------------- Package Methods
144

145
146     /**
147      * The NamingResources with which we are associated (if any).
148      */

149     protected NamingResources resources = null;
150
151     public NamingResources getNamingResources() {
152         return (this.resources);
153     }
154
155     void setNamingResources(NamingResources resources) {
156         this.resources = resources;
157     }
158
159
160 }
161
Popular Tags