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: */
017:
018: package org.apache.catalina.deploy;
019:
020: /**
021: * <p>Representation of a message destination for a web application, as
022: * represented in a <code><message-destination></code> element
023: * in the deployment descriptor.</p>
024: *
025: * @author Craig R. McClanahan
026: * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
027: * @since Tomcat 5.0
028: */
029:
030: public class MessageDestination {
031:
032: // ------------------------------------------------------------- Properties
033:
034: /**
035: * The description of this destination.
036: */
037: private String description = null;
038:
039: public String getDescription() {
040: return (this .description);
041: }
042:
043: public void setDescription(String description) {
044: this .description = description;
045: }
046:
047: /**
048: * The display name of this destination.
049: */
050: private String displayName = null;
051:
052: public String getDisplayName() {
053: return (this .displayName);
054: }
055:
056: public void setDisplayName(String displayName) {
057: this .displayName = displayName;
058: }
059:
060: /**
061: * The large icon of this destination.
062: */
063: private String largeIcon = null;
064:
065: public String getLargeIcon() {
066: return (this .largeIcon);
067: }
068:
069: public void setLargeIcon(String largeIcon) {
070: this .largeIcon = largeIcon;
071: }
072:
073: /**
074: * The name of this destination.
075: */
076: private String name = null;
077:
078: public String getName() {
079: return (this .name);
080: }
081:
082: public void setName(String name) {
083: this .name = name;
084: }
085:
086: /**
087: * The small icon of this destination.
088: */
089: private String smallIcon = null;
090:
091: public String getSmallIcon() {
092: return (this .smallIcon);
093: }
094:
095: public void setSmallIcon(String smallIcon) {
096: this .smallIcon = smallIcon;
097: }
098:
099: // --------------------------------------------------------- Public Methods
100:
101: /**
102: * Return a String representation of this object.
103: */
104: public String toString() {
105:
106: StringBuffer sb = new StringBuffer("MessageDestination[");
107: sb.append("name=");
108: sb.append(name);
109: if (displayName != null) {
110: sb.append(", displayName=");
111: sb.append(displayName);
112: }
113: if (largeIcon != null) {
114: sb.append(", largeIcon=");
115: sb.append(largeIcon);
116: }
117: if (smallIcon != null) {
118: sb.append(", smallIcon=");
119: sb.append(smallIcon);
120: }
121: if (description != null) {
122: sb.append(", description=");
123: sb.append(description);
124: }
125: sb.append("]");
126: return (sb.toString());
127:
128: }
129:
130: }
|