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

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

dead code removal, performance improvements, comment tidying

----------------------------------------------------------------------

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 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
21import java.io.*;
22/**
23 * Class
24 *
25 * A class to
26 *
27 * @author Dave Nichols ([email protected])
28 * @author stuart yeates ([email protected])
29 * @version $Revision: 2147 $
30 * @see org.nzdl.gsdl.service.SimpleGraphicalClient.SimpleGraphicalClient
31 */
32
33public class Result extends Object
34{
35 private String resultTitle;
36 private String docID;
37 private String collectionName;
38
39
40 public final static String FAKE_RESULT = "No results returned";
41
42 // related query
43 // time, person, collection etc
44
45 public Result( String newResultTitle)
46 {
47 resultTitle = newResultTitle;
48 }
49
50 public Result( String newResultTitle, String newResultDocID, String newResultCollectionName)
51 {
52 resultTitle = newResultTitle;
53 docID = newResultDocID;
54 collectionName = newResultCollectionName;
55 }
56
57 public String toString ()
58 {
59 return resultTitle;
60 }
61 public String getDocID()
62 {
63 return docID;
64 }
65 public String getCollectionName()
66 {
67 return collectionName;
68 }
69
70
71
72} //end Result class
Note: See TracBrowser for help on using the repository browser.