KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnet > Search > SearchReplyItem


1 /*
2  * SearchReplyItem.java
3  *
4  * Created on 28. duben 2004, 15:35
5  */

6
7 package SOFA.SOFAnet.Search;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * The reply item is par of node name and bundle name - which node and which bundle can satisfy search request
13  *
14  * @author Ladislav Sobr
15  */

16 public class SearchReplyItem implements Serializable JavaDoc
17 {
18   private String JavaDoc nodeName;
19   private String JavaDoc bundleName;
20   
21   /** Creates a new instance of SearchReplyItem */
22   public SearchReplyItem()
23   {
24   }
25
26   public SearchReplyItem(String JavaDoc nodeName, String JavaDoc bundleName)
27   {
28     this.nodeName = nodeName;
29     this.bundleName = bundleName;
30   }
31
32   public String JavaDoc getNodeName()
33   {
34     return nodeName;
35   }
36   
37   public String JavaDoc getBundleName()
38   {
39     return bundleName;
40   }
41   
42   public void setNodeName(String JavaDoc nodeName)
43   {
44     this.nodeName = nodeName;
45   }
46   
47   public void setBundleName(String JavaDoc bundleName)
48   {
49     this.bundleName = bundleName;
50   }
51   
52   public String JavaDoc toString()
53   {
54     return bundleName + " at " + nodeName;
55   }
56 }
57
Popular Tags