KickJava   Java API By Example, From Geeks To Geeks.

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


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
22 /**
23  * <p>Representation of a message destination for a web application, as
24  * represented in a <code>&lt;message-destination&gt;</code> element
25  * in the deployment descriptor.</p>
26  *
27  * @author Craig R. McClanahan
28  * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
29  * @since Tomcat 5.0
30  */

31
32 public class MessageDestination {
33
34
35     // ------------------------------------------------------------- Properties
36

37
38     /**
39      * The description of this destination.
40      */

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

55     private String JavaDoc displayName = null;
56
57     public String JavaDoc getDisplayName() {
58         return (this.displayName);
59     }
60
61     public void setDisplayName(String JavaDoc displayName) {
62         this.displayName = displayName;
63     }
64
65
66     /**
67      * The large icon of this destination.
68      */

69     private String JavaDoc largeIcon = null;
70
71     public String JavaDoc getLargeIcon() {
72         return (this.largeIcon);
73     }
74
75     public void setLargeIcon(String JavaDoc largeIcon) {
76         this.largeIcon = largeIcon;
77     }
78
79
80     /**
81      * The name of this destination.
82      */

83     private String JavaDoc name = null;
84
85     public String JavaDoc getName() {
86         return (this.name);
87     }
88
89     public void setName(String JavaDoc name) {
90         this.name = name;
91     }
92
93
94     /**
95      * The small icon of this destination.
96      */

97     private String JavaDoc smallIcon = null;
98
99     public String JavaDoc getSmallIcon() {
100         return (this.smallIcon);
101     }
102
103     public void setSmallIcon(String JavaDoc smallIcon) {
104         this.smallIcon = smallIcon;
105     }
106
107
108     // --------------------------------------------------------- Public Methods
109

110
111     /**
112      * Return a String representation of this object.
113      */

114     public String JavaDoc toString() {
115
116         StringBuffer JavaDoc sb = new StringBuffer JavaDoc("MessageDestination[");
117         sb.append("name=");
118         sb.append(name);
119         if (displayName != null) {
120             sb.append(", displayName=");
121             sb.append(displayName);
122         }
123         if (largeIcon != null) {
124             sb.append(", largeIcon=");
125             sb.append(largeIcon);
126         }
127         if (smallIcon != null) {
128             sb.append(", smallIcon=");
129             sb.append(smallIcon);
130         }
131         if (description != null) {
132             sb.append(", description=");
133             sb.append(description);
134         }
135         sb.append("]");
136         return (sb.toString());
137
138     }
139
140
141 }
142
Popular Tags