001: /*
002: * Copyright 1999,2004 The Apache Software Foundation.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: */
016:
017: package org.apache.catalina.deploy;
018:
019: /**
020: * <p>Representation of a message destination for a web application, as
021: * represented in a <code><message-destination></code> element
022: * in the deployment descriptor.</p>
023: *
024: * @author Craig R. McClanahan
025: * @version $Revision: 1.3 $ $Date: 2004/05/13 20:40:49 $
026: * @since Tomcat 5.0
027: */
028:
029: public class MessageDestination {
030:
031: // ------------------------------------------------------------- Properties
032:
033: /**
034: * The description of this destination.
035: */
036: private String description = null;
037:
038: public String getDescription() {
039: return (this .description);
040: }
041:
042: public void setDescription(String description) {
043: this .description = description;
044: }
045:
046: /**
047: * The display name of this destination.
048: */
049: private String displayName = null;
050:
051: public String getDisplayName() {
052: return (this .displayName);
053: }
054:
055: public void setDisplayName(String displayName) {
056: this .displayName = displayName;
057: }
058:
059: /**
060: * The large icon of this destination.
061: */
062: private String largeIcon = null;
063:
064: public String getLargeIcon() {
065: return (this .largeIcon);
066: }
067:
068: public void setLargeIcon(String largeIcon) {
069: this .largeIcon = largeIcon;
070: }
071:
072: /**
073: * The name of this destination.
074: */
075: private String name = null;
076:
077: public String getName() {
078: return (this .name);
079: }
080:
081: public void setName(String name) {
082: this .name = name;
083: }
084:
085: /**
086: * The small icon of this destination.
087: */
088: private String smallIcon = null;
089:
090: public String getSmallIcon() {
091: return (this .smallIcon);
092: }
093:
094: public void setSmallIcon(String smallIcon) {
095: this .smallIcon = smallIcon;
096: }
097:
098: // --------------------------------------------------------- Public Methods
099:
100: /**
101: * Return a String representation of this object.
102: */
103: public String toString() {
104:
105: StringBuffer sb = new StringBuffer("MessageDestination[");
106: sb.append("name=");
107: sb.append(name);
108: if (displayName != null) {
109: sb.append(", displayName=");
110: sb.append(displayName);
111: }
112: if (largeIcon != null) {
113: sb.append(", largeIcon=");
114: sb.append(largeIcon);
115: }
116: if (smallIcon != null) {
117: sb.append(", smallIcon=");
118: sb.append(smallIcon);
119: }
120: if (description != null) {
121: sb.append(", description=");
122: sb.append(description);
123: }
124: sb.append("]");
125: return (sb.toString());
126:
127: }
128:
129: }
|