Source Code Cross Referenced for LiusField.java in  » Search-Engine » Lius-0.4 » ca » ulaval » bibl » lius » config » 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 » Search Engine » Lius 0.4 » ca.ulaval.bibl.lius.config 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:         * LIUS - Lucene Index Update and Search
004:         * http://sourceforge.net/projects/lius/
005:         *
006:         * Copyright (c) 2005, Laval University Library.  All rights reserved.
007:         * 
008:         * This library is free software; you can redistribute it and/or
009:         * modify it under the terms of the GNU Lesser General Public
010:         * License as published by the Free Software Foundation; either
011:         * version 2.1 of the License, or (at your option) any later version.
012:         * 
013:         * This library is distributed in the hope that it will be useful,
014:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
015:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
016:         * Lesser General Public License for more details.
017:         * 
018:         * You should have received a copy of the GNU Lesser General Public
019:         * License along with this library; if not, write to the Free Software
020:         * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
021:         */
022:
023:        package ca.ulaval.bibl.lius.config;
024:
025:        import java.io.InputStreamReader;
026:        import java.io.Reader;
027:        import java.util.Date;
028:        import java.util.Vector;
029:
030:        /**
031:         * 
032:         * Classe représentant le bean LiusField
033:         * 
034:         * <br/><br/>
035:         * 
036:         * Class representing LiusField bean.
037:         * 
038:         * @author Rida Benjelloun (rida.benjelloun@bibl.ulaval.ca)
039:         *  
040:         */
041:
042:        public class LiusField {
043:
044:            private String name;
045:
046:            private String xpathSelect;
047:
048:            private String type;
049:
050:            private String value;
051:
052:            private String ocurSep;
053:
054:            private long dateLong;
055:
056:            private Date date;
057:
058:            private String dateFormat;
059:
060:            private String getMethod;
061:
062:            private String get;
063:
064:            private InputStreamReader valueInputStreamReader;
065:
066:            private Reader valueReader;
067:
068:            private String label;
069:
070:            private Vector values;
071:
072:            private float boost;
073:
074:            private boolean isBoostedB;
075:
076:            private String fragmenter;
077:
078:            /**
079:             * 
080:             * Méthode permettant de récupérer la valeur de name.
081:             * 
082:             * <br/><br/>
083:             * 
084:             * Method for getting name value.
085:             *  
086:             */
087:
088:            public String getName() {
089:
090:                return name;
091:
092:            }
093:
094:            /**
095:             * Méthode permettant d'initialiser la valeur de name.
096:             * 
097:             * <br/><br/>
098:             * 
099:             * Method for initializing the name value.
100:             *  
101:             */
102:
103:            public void setName(String name) {
104:
105:                this .name = name;
106:
107:            }
108:
109:            /**
110:             * Méthode permettant de récupérer la valeur de xpathSelect.
111:             * 
112:             * <br/><br/>
113:             * 
114:             * Method for getting xpathSelect value.
115:             *  
116:             */
117:
118:            public String getXpathSelect() {
119:
120:                return xpathSelect;
121:
122:            }
123:
124:            /**
125:             * 
126:             * Méthode permettant d'initialiser la valeur de xpathSelect.
127:             * 
128:             * <br/><br/>
129:             * 
130:             * Method for initializing the xpathSelect value.
131:             *  
132:             */
133:
134:            public void setXpathSelect(String xpathSelect) {
135:
136:                this .xpathSelect = xpathSelect;
137:
138:            }
139:
140:            /**
141:             * Méthode permettant de récupérer la valeur de type.
142:             * 
143:             * <br/><br/>
144:             * 
145:             * Method for getting type value.
146:             *  
147:             */
148:
149:            public String getType() {
150:
151:                return type;
152:
153:            }
154:
155:            /**
156:             * Méthode permettant d'initialiser la valeur de type.
157:             * 
158:             * <br/><br/>
159:             * 
160:             * Method for initializing the type value.
161:             *  
162:             */
163:
164:            public void setType(String type) {
165:
166:                this .type = type;
167:
168:            }
169:
170:            /**
171:             * Méthode permettant de récupérer la valeur de Value.
172:             * 
173:             * <br/><br/>
174:             * 
175:             * Method for getting value value.
176:             *  
177:             */
178:
179:            public String getValue() {
180:
181:                return value;
182:
183:            }
184:
185:            /**
186:             * Méthode permettant d'initialiser la valeur de value.
187:             * 
188:             * <br/><br/>
189:             * 
190:             * Method for initializing the value of value.
191:             *  
192:             */
193:
194:            public void setValue(String value) {
195:
196:                this .value = value;
197:
198:            }
199:
200:            /**
201:             * Méthode permettant de récupérer la valeur du séparateur d'occurance.
202:             * 
203:             * <br/><br/>
204:             * 
205:             * Method for getting the hit separator value.
206:             *  
207:             */
208:
209:            public String getOcurSep() {
210:
211:                return ocurSep;
212:
213:            }
214:
215:            /**
216:             * Méthode permettant d'initialiser la valeur du séparateur d'occurance.
217:             * 
218:             * <br/><br/>
219:             * 
220:             * Method for initializing the hit separator value.
221:             *  
222:             */
223:
224:            public void setOcurSep(String ocurSep) {
225:
226:                this .ocurSep = ocurSep;
227:
228:            }
229:
230:            /**
231:             * Méthode permettant d'initialiser la valeur de date.
232:             * 
233:             * <br/><br/>
234:             * 
235:             * Method for initializing the date value.
236:             *  
237:             */
238:
239:            public void setDateLong(long dateLong) {
240:
241:                this .dateLong = dateLong;
242:
243:            }
244:
245:            /**
246:             * Méthode permettant de récupérer la valeur de date.
247:             * 
248:             * <br/><br/>
249:             * 
250:             * Method for getting the date value.
251:             *  
252:             */
253:
254:            public long getDateLong() {
255:
256:                return dateLong;
257:
258:            }
259:
260:            /**
261:             * Méthode permettant d'initialiser la valeur de date.
262:             * 
263:             * <br/><br/>
264:             * 
265:             * Method for initializing the date value.
266:             *  
267:             */
268:
269:            public void setDate(Date date) {
270:
271:                this .date = date;
272:
273:            }
274:
275:            /**
276:             * Méthode permettant de récupérer la valeur de date.
277:             * 
278:             * <br/><br/>
279:             * 
280:             * Method for getting the date value.
281:             *  
282:             */
283:
284:            public Date getDate() {
285:
286:                return date;
287:
288:            }
289:
290:            //nouveau tout ce qui suit
291:
292:            /**
293:             * Méthode utilsée pour l'indexation du Java Beans.
294:             * 
295:             * Elle initialise le nom de la méthode get utilisée avec la réflexion en
296:             * Java pour
297:             * 
298:             * récupérer le contenu du champs
299:             */
300:
301:            public void setGetMethod(String getMethod) {
302:
303:                this .getMethod = getMethod;
304:
305:            }
306:
307:            /**
308:             * 
309:             * Permet de récuperer le nom de la méthode get (utilisée pour l'indexation
310:             * du Java
311:             * 
312:             * Bean) à partir du fichier de configuration de Lius.
313:             * 
314:             * <br/><br/>
315:             * 
316:             * Gets the get method (used for JavaBean indexation) from Lius
317:             * configuration file.
318:             *  
319:             */
320:
321:            public String getGetMethod() {
322:
323:                return getMethod;
324:
325:            }
326:
327:            public void setGet(String get) {
328:
329:                this .get = get;
330:
331:            }
332:
333:            public String getGet() {
334:
335:                return get;
336:
337:            }
338:
339:            /**
340:             * 
341:             * Utilisé pour intialiser le InputStreamReader pour l'indexation du PDF.
342:             * 
343:             * <br/><br/>
344:             * 
345:             * Uses for initializing the InputStreamReader for PDF indexation.
346:             *  
347:             */
348:
349:            public void setValueInputStreamReader(InputStreamReader
350:
351:            valueInputStreamReader) {
352:
353:                this .valueInputStreamReader = valueInputStreamReader;
354:
355:            }
356:
357:            /**
358:             * 
359:             * Permet de récupérer le InputStreamReader utilisé pour l'indexation du
360:             * PDF.
361:             * 
362:             * <br/><br/>
363:             * 
364:             * Method for getting the InputStreamReader used for PDF indexation.
365:             *  
366:             */
367:
368:            public InputStreamReader getValueInputStreamReader() {
369:
370:                return valueInputStreamReader;
371:
372:            }
373:
374:            /**
375:             * 
376:             * Utilisé pour intialiser le Reader pour l'indexation du HTML.
377:             * 
378:             * <br/><br/>
379:             * 
380:             * Used for initializing the Reader for HTML indexation.
381:             *  
382:             */
383:
384:            public void setValueReader(Reader valueReader) {
385:
386:                this .valueReader = valueReader;
387:
388:            }
389:
390:            /**
391:             * 
392:             * Permet de récupérer le Reader utilisé pour l'indexation du HTML.
393:             * 
394:             * <br/><br/>
395:             * 
396:             * Method for getting the Reader used for HTML indexation.
397:             *  
398:             */
399:
400:            public Reader getValueReader() {
401:
402:                return valueReader;
403:
404:            }
405:
406:            /**
407:             * 
408:             * Permet d'initialiser le label du résultat de recherche à partir du
409:             * 
410:             * fichier de configuration.
411:             * 
412:             * <br/><br/>
413:             * 
414:             * Initialize the label of search result from configuration file.
415:             *  
416:             */
417:
418:            public void setLabel(String label) {
419:
420:                this .label = label;
421:
422:            }
423:
424:            /**
425:             * 
426:             * Permet de récupérer le label du résultat de recherche à partir du
427:             * 
428:             * fichier de configuration.
429:             * 
430:             * <br/><br/>
431:             * 
432:             * Gets the search result label from configuration file.
433:             * 
434:             * 
435:             *  
436:             */
437:
438:            public String getLabel() {
439:
440:                return label;
441:
442:            }
443:
444:            /**
445:             * 
446:             * Permet de récupérer les valeurs des occurances multiples d'un champ de
447:             * 
448:             * résultat de recherche.
449:             * 
450:             * <br/><br/>
451:             * 
452:             * Gets the values of mutiple hits of a search field.
453:             *  
454:             */
455:
456:            public Vector getValues() {
457:
458:                return values;
459:
460:            }
461:
462:            /**
463:             * 
464:             * Permet d'initialiser les valeurs des occurances multiples d'un champ de
465:             * 
466:             * résultat de recherche.
467:             * 
468:             * <br/><br/>
469:             * 
470:             * Initializes the values of multiple hits of a search result.
471:             *  
472:             */
473:
474:            public void setValues(Vector values) {
475:
476:                this .values = values;
477:
478:            }
479:
480:            public void setDateFormat(String dateFormat) {
481:
482:                this .dateFormat = dateFormat;
483:
484:            }
485:
486:            public String getDateFormat() {
487:
488:                return dateFormat;
489:
490:            }
491:
492:            public void setBoost(float boost) {
493:
494:                this .boost = boost;
495:
496:            }
497:
498:            public float getBoost() {
499:
500:                return boost;
501:
502:            }
503:
504:            public void setIsBoosted(boolean isBoostedB) {
505:
506:                this .isBoostedB = isBoostedB;
507:
508:            }
509:
510:            public boolean getIsBoosted() {
511:
512:                return isBoostedB;
513:
514:            }
515:
516:            public void setFragmenter(String fragmenter) {
517:
518:                this .fragmenter = fragmenter;
519:
520:            }
521:
522:            public String getFragmenter() {
523:
524:                return fragmenter;
525:
526:            }
527:
528:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.