KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > joram > mom > notifications > RegisterTmpDestNot


1 /*
2  * JORAM: Java(TM) Open Reliable Asynchronous Messaging
3  * Copyright (C) 2001 - 2006 ScalAgent Distributed Technologies
4  * Copyright (C) 1996 - Dyade
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA.
20  *
21  * Initial developer(s): ScalAgent Distributed Technologies
22  * Contributor(s):
23  */

24 package org.objectweb.joram.mom.notifications;
25
26 import fr.dyade.aaa.agent.*;
27
28 public class RegisterTmpDestNot
29     extends fr.dyade.aaa.agent.Notification {
30
31   private AgentId tmpDestId;
32
33   private boolean topic;
34
35   private boolean add;
36
37   public RegisterTmpDestNot(AgentId tmpDestId,
38                             boolean topic,
39                             boolean add) {
40     this.tmpDestId = tmpDestId;
41     this.topic = topic;
42     this.add = add;
43   }
44
45   public final AgentId getTmpDestId() {
46     return tmpDestId;
47   }
48
49   public final boolean isTopic() {
50     return topic;
51   }
52
53   public final boolean toAdd() {
54     return add;
55   }
56
57   /**
58    * Appends a string image for this object to the StringBuffer parameter.
59    *
60    * @param output
61    * buffer to fill in
62    * @return
63     <code>output</code> buffer is returned
64    */

65   public StringBuffer JavaDoc toString(StringBuffer JavaDoc output) {
66     output.append('(');
67     super.toString(output);
68     output.append(",tmpDestId=").append(tmpDestId);
69     output.append(",topic=").append(topic);
70     output.append(",add=").append(add);
71     output.append(')');
72
73     return output;
74   }
75 }
76
Popular Tags