01: /**
02: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the latest version of the GNU Lesser General
06: * Public License as published by the Free Software Foundation;
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program (LICENSE.txt); if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: */package org.jamwiki.search;
17:
18: import org.jamwiki.utils.WikiLogger;
19:
20: /**
21: * Provides an object that can be used to store search result information.
22: */
23: public class SearchResultEntry {
24:
25: private static final WikiLogger logger = WikiLogger
26: .getLogger(SearchResultEntry.class.getName());
27:
28: /** The topic of this entry */
29: private String topic = null;
30: /** the hit ranking */
31: private float ranking = 0.0f;
32: /** Result summary */
33: private String summary = null;
34:
35: /**
36: *
37: */
38: protected SearchResultEntry() {
39: }
40:
41: /**
42: *
43: */
44: public float getRanking() {
45: return this .ranking;
46: }
47:
48: /**
49: *
50: */
51: public String getSummary() {
52: return this .summary;
53: }
54:
55: /**
56: *
57: */
58: public String getTopic() {
59: return this .topic;
60: }
61:
62: /**
63: *
64: */
65: public void setRanking(float ranking) {
66: this .ranking = ranking;
67: }
68:
69: /**
70: *
71: */
72: public void setSummary(String summary) {
73: this .summary = summary;
74: }
75:
76: /**
77: *
78: */
79: public void setTopic(String topic) {
80: this.topic = topic;
81: }
82: }
|