source: trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Result.java@ 2165

Last change on this file since 2165 was 2165, checked in by daven, 23 years ago

killed bugs concerning 0 hits, instrumented code

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1/*
2 * SimpleGraphicalClient.java
3 * Copyright (C) 2001 New Zealand Digital Library Project
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19package org.nzdl.gsdl.SimpleGraphicalClient;
20
21/**
22 * Class
23 *
24 * A class to
25 *
26 * @author Dave Nichols ([email protected])
27 * @author stuart yeates ([email protected])
28 * @version $Revision: 2165 $
29 * @see org.nzdl.gsdl.service.SimpleGraphicalClient.SimpleGraphicalClient
30 */
31
32public class Result extends Object
33{
34 private String resultTitle;
35 private String docID;
36 private String collectionName;
37
38
39 public final static Result FAKE_RESULT = new Result("No results returned", "", "");
40 public final static Result INITIAL_FAKE_RESULT = new Result("Search results will appear here", "", "");
41 // related query
42 // time, person, collection etc
43
44 public Result( String newResultTitle)
45 {
46 resultTitle = newResultTitle;
47 }
48
49 public Result( String newResultTitle, String newResultDocID, String newResultCollectionName)
50 {
51 resultTitle = newResultTitle;
52 docID = newResultDocID;
53 collectionName = newResultCollectionName;
54 }
55
56 public String toString ()
57 {
58 return resultTitle;
59 }
60 public String getDocID()
61 {
62 return docID;
63 }
64 public String getCollectionName()
65 {
66 return collectionName;
67 }
68
69
70
71} //end Result class
Note: See TracBrowser for help on using the repository browser.