Source Code Cross Referenced for SearchResultEntry.java in  » Wiki-Engine » VeryQuickWiki » vqwiki » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Wiki Engine » VeryQuickWiki » vqwiki 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * $Id: SearchResultEntry.java 644 2006-04-23 07:52:28Z wrh2 $
003:         *
004:         * Filename  : SearchResultEntry.java
005:         * Project   : VQWiki
006:         * Auhtor    : Tobias Schulz-Hess (sourceforge@schulz-hess.de)
007:         */
008:        package vqwiki;
009:
010:        /**
011:         * bean, which contains one search result entry
012:         *
013:         * This class was created on 09:58:54 14.04.2003
014:         *
015:         * @author Tobias Schulz-Hess (sourceforge@schulz-hess.de)
016:         */
017:        public class SearchResultEntry {
018:
019:            /** The topic of this entry */
020:            private String topic = "";
021:            /** Text before found text */
022:            private String textBefore = "";
023:            /** the found word */
024:            private String foundWord = "";
025:            /** the text after the found word */
026:            private String textAfter = "";
027:            /** the hit ranking */
028:            private float ranking = 0.0f;
029:
030:            /**
031:             * @return
032:             */
033:            public String getFoundWord() {
034:                return foundWord;
035:            }
036:
037:            /**
038:             * @return
039:             */
040:            public float getRanking() {
041:                return ranking;
042:            }
043:
044:            /**
045:             * @return
046:             */
047:            public String getTextAfter() {
048:                return textAfter;
049:            }
050:
051:            /**
052:             * @return
053:             */
054:            public String getTextBefore() {
055:                return textBefore;
056:            }
057:
058:            /**
059:             * @return
060:             */
061:            public String getTopic() {
062:                return topic;
063:            }
064:
065:            /**
066:             * @param string
067:             */
068:            public void setFoundWord(String string) {
069:                foundWord = string;
070:            }
071:
072:            /**
073:             * @param f
074:             */
075:            public void setRanking(float f) {
076:                ranking = f;
077:            }
078:
079:            /**
080:             * @param string
081:             */
082:            public void setTextAfter(String string) {
083:                textAfter = string;
084:            }
085:
086:            /**
087:             * @param string
088:             */
089:            public void setTextBefore(String string) {
090:                textBefore = string;
091:            }
092:
093:            /**
094:             * @param string
095:             */
096:            public void setTopic(String string) {
097:                topic = string;
098:            }
099:
100:            /**
101:             * Equals
102:             * @param o the other object
103:             * @return equal o
104:             */
105:            public boolean equals(Object o) {
106:                if (this  == o)
107:                    return true;
108:                if (!(o instanceof  SearchResultEntry))
109:                    return false;
110:                final SearchResultEntry searchResultEntry = (SearchResultEntry) o;
111:                if (ranking != searchResultEntry.ranking)
112:                    return false;
113:                if (foundWord != null ? !foundWord
114:                        .equals(searchResultEntry.foundWord)
115:                        : searchResultEntry.foundWord != null)
116:                    return false;
117:                if (textAfter != null ? !textAfter
118:                        .equals(searchResultEntry.textAfter)
119:                        : searchResultEntry.textAfter != null)
120:                    return false;
121:                if (textBefore != null ? !textBefore
122:                        .equals(searchResultEntry.textBefore)
123:                        : searchResultEntry.textBefore != null)
124:                    return false;
125:                if (topic != null ? !topic.equals(searchResultEntry.topic)
126:                        : searchResultEntry.topic != null)
127:                    return false;
128:                return true;
129:            }
130:
131:            /**
132:             * Hashcode
133:             * @return hashcode
134:             */
135:            public int hashCode() {
136:                int result;
137:                result = (topic != null ? topic.hashCode() : 0);
138:                result = 29 * result
139:                        + (textBefore != null ? textBefore.hashCode() : 0);
140:                result = 29 * result
141:                        + (foundWord != null ? foundWord.hashCode() : 0);
142:                result = 29 * result
143:                        + (textAfter != null ? textAfter.hashCode() : 0);
144:                result = 29 * result + Float.floatToIntBits(ranking);
145:                return result;
146:            }
147:        }
148:
149:        /*
150:         * Log:
151:         *
152:         * $Log$
153:         * Revision 1.4  2006/04/23 07:52:28  wrh2
154:         * Coding style updates (VQW-73).
155:         *
156:         * Revision 1.3  2004/02/28 04:05:42  garethc
157:         * General bug fixes, panic on admin console
158:         *
159:         * Revision 1.2  2003/04/15 23:11:02  garethc
160:         * lucene fixes
161:         *
162:         * Revision 1.1  2003/04/15 08:41:32  mrgadget4711
163:         * ADD: Lucene search
164:         * ADD: RSS Stream
165:         *
166:         * ------------END------------
167:         */
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.