- Timestamp:
- 2001-04-04T22:44:38+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/java-client/org/nzdl/gsdl/SimpleGraphicalClient/Result.java
r2165 r2281 35 35 private String docID; 36 36 private String collectionName; 37 private QueryHistoryItem queryHistoryItem; 37 38 38 39 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", "", "" );40 public final static Result FAKE_RESULT = new Result("No results returned", "", "", new QueryHistoryItem() ); 41 public final static Result INITIAL_FAKE_RESULT = new Result("Search results will appear here", "", "", new QueryHistoryItem()); 41 42 // related query 42 43 // time, person, collection etc 43 44 44 public Result( String newResultTitle) 45 { 46 resultTitle = newResultTitle; 47 } 45 public Result( String newResultTitle) { 46 resultTitle = newResultTitle; 47 } 48 48 49 public Result( String newResultTitle, String newResultDocID, String newResultCollectionName )49 public Result( String newResultTitle, String newResultDocID, String newResultCollectionName, QueryHistoryItem newQueryHistoryItem) 50 50 { 51 51 resultTitle = newResultTitle; 52 52 docID = newResultDocID; 53 53 collectionName = newResultCollectionName; 54 queryHistoryItem = newQueryHistoryItem; 54 55 } 55 56 56 public String toString () 57 { 58 return resultTitle; 59 } 60 public String getDocID() 61 { 62 return docID; 63 } 64 public String getCollectionName() 65 { 57 public String toString () { 58 return resultTitle; 59 } 60 public String getDocID() { 61 return docID; 62 } 63 public String getCollectionName() { 66 64 return collectionName; 65 } 66 public QueryHistoryItem getQueryHistoryItem() { 67 return queryHistoryItem; 67 68 } 68 69
Note:
See TracChangeset
for help on using the changeset viewer.