KickJava   Java API By Example, From Geeks To Geeks.

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


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

6
7 package SOFA.SOFAnet.Search;
8
9 import java.util.List JavaDoc;
10 import java.io.Serializable JavaDoc;
11
12 /**
13  * The reply to search request.
14  * The reply consist of search request ID and reply items.
15  *
16  * @author Ladislav Sobr
17  */

18 public class SearchReply implements Serializable JavaDoc
19 {
20   private SearchRequestID requestID; //identification of request that this reply belongs to
21
private List JavaDoc replies; //list of replies
22

23   /** Creates a new instance of SearchReply */
24   public SearchReply()
25   {
26   }
27
28   public SearchReply(SearchRequestID requestID, List JavaDoc replies)
29   {
30     this.requestID = requestID;
31     this.replies = replies;
32   }
33
34   public SearchRequestID getRequestID()
35   {
36     return requestID;
37   }
38   
39   public List JavaDoc getReplies()
40   {
41     return replies;
42   }
43   
44   public void setRequestID(SearchRequestID requestID)
45   {
46     this.requestID = requestID;
47   }
48   
49   public void setReplies(List JavaDoc replies)
50   {
51     this.replies = replies;
52   }
53   
54 }
55
Popular Tags