Source Code Cross Referenced for SearchResult.java in  » Content-Management-System » contineo » org » contineo » core » searchengine » comparision » 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 » Content Management System » contineo » org.contineo.core.searchengine.comparision 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.contineo.core.searchengine.comparision;
002:
003:        import java.io.Serializable;
004:
005:        /**
006:         * @author Michael Scholz, Marco Meschieri
007:         */
008:        public class SearchResult implements  Serializable {
009:            private static final long serialVersionUID = 1L;
010:
011:            /**
012:             * @uml.property name="name"
013:             */
014:            private String name = "";
015:
016:            /**
017:             * @uml.property name="summary"
018:             */
019:            private String summary = "";
020:
021:            /**
022:             * @uml.property name="path"
023:             */
024:            private String path = "";
025:
026:            private int menuId = 0;
027:
028:            /**
029:             * @uml.property name="icon"
030:             */
031:            private String icon = "";
032:
033:            /**
034:             * @uml.property name="green"
035:             */
036:            private Integer green = new Integer(0);
037:
038:            /**
039:             * @uml.property name="red"
040:             */
041:            private Integer red = new Integer(0);
042:
043:            /**
044:             * @uml.property name="score"
045:             */
046:            private Double score = new Double(0.0);
047:
048:            /**
049:             * 
050:             */
051:            public SearchResult() {
052:            } // end ctor SearchResult
053:
054:            /**
055:             * @return
056:             * 
057:             * @uml.property name="green"
058:             */
059:            public Integer getGreen() {
060:                return green;
061:            } // end method getGreen
062:
063:            /**
064:             * @return
065:             * 
066:             * @uml.property name="icon"
067:             */
068:            public String getIcon() {
069:                return icon;
070:            } // end method getIcon
071:
072:            public int getMenuId() {
073:                return menuId;
074:            }
075:
076:            /**
077:             * @return
078:             * 
079:             * @uml.property name="name"
080:             */
081:            public String getName() {
082:                return name;
083:            } // end method getName
084:
085:            /**
086:             * @return
087:             * 
088:             * @uml.property name="path"
089:             */
090:            public String getPath() {
091:                return path;
092:            } // end method getPath
093:
094:            /**
095:             * @return
096:             * 
097:             * @uml.property name="red"
098:             */
099:            public Integer getRed() {
100:                return red;
101:            } // end method getRed
102:
103:            /**
104:             * @return
105:             * 
106:             * @uml.property name="score"
107:             */
108:            public Double getScore() {
109:                return score;
110:            } // end method getScore
111:
112:            /**
113:             * @return
114:             * 
115:             * @uml.property name="summary"
116:             */
117:            public String getSummary() {
118:                return summary;
119:            } // end method getSummary
120:
121:            /**
122:             * @param integer
123:             * 
124:             * @uml.property name="green"
125:             */
126:            public void setGreen(Integer integer) {
127:                green = integer;
128:            } // end method setGreen
129:
130:            /**
131:             * @param string
132:             * 
133:             * @uml.property name="icon"
134:             */
135:            public void setIcon(String string) {
136:                icon = string;
137:            } // end method setIcon
138:
139:            public void setMenuId(int id) {
140:                menuId = id;
141:            } // end method setMenuId
142:
143:            /**
144:             * @param string
145:             * 
146:             * @uml.property name="name"
147:             */
148:            public void setName(String string) {
149:                name = string;
150:            } // end method setName
151:
152:            /**
153:             * @param string
154:             * 
155:             * @uml.property name="path"
156:             */
157:            public void setPath(String string) {
158:                path = string;
159:            } // end method setPath
160:
161:            /**
162:             * @param integer
163:             * 
164:             * @uml.property name="red"
165:             */
166:            public void setRed(Integer integer) {
167:                red = integer;
168:            } // end method setRed
169:
170:            /**
171:             * @param double1
172:             */
173:            public void setScore(double scr) {
174:                score = new Double(scr);
175:
176:                double temp = scr * 100;
177:                int tgreen = (int) Math.round(temp);
178:
179:                if (tgreen < 1) {
180:                    tgreen = 1;
181:                }
182:
183:                green = new Integer(tgreen);
184:                temp = 100 - (scr * 100);
185:
186:                int tred = (int) Math.round(temp);
187:
188:                if (tred > 99) {
189:                    tred = 99;
190:                }
191:
192:                red = new Integer(tred);
193:            }
194:
195:            public void setSummary(String string) {
196:                summary = string;
197:            }
198:
199:            @Override
200:            public boolean equals(Object other) {
201:                SearchResult sr = (SearchResult) other;
202:                return getMenuId() == sr.getMenuId();
203:            }
204:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.