KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > search > ParsedObject


1 package org.jahia.services.search;
2
3 import java.util.*;
4
5 /**
6  * <p>Title: Contains information returned by the search result as a map
7  * of fieldname/values pair.</p>
8  * <p>Description: </p>
9  * <p>Copyright: Copyright (c) 2004</p>
10  * <p>Company: </p>
11  *
12  * @author Khue Nguyen
13  * @version 1.0
14  */

15 public interface ParsedObject {
16
17     /**
18      * Returns the score
19      *
20      * @return float
21      */

22     public abstract float getScore();
23
24     /**
25      * Set the score
26      *
27      * @param score float
28      */

29     public abstract void setScore(float score);
30
31     /**
32      * Return an hastable of fieldname/values pair of information as they were
33      * stored through a AddedField by the search engine
34      *
35      * the key is a String and the values is an array of string values
36      *
37      * @return
38      */

39     public abstract Hashtable getFields ();
40
41     /**
42      * Return an array of value for the given field
43      * @param fieldName String
44      * @return String[]
45      */

46     public abstract String JavaDoc[] getValues(String JavaDoc fieldName);
47
48     /**
49      * Return the first value for the given field
50      * @return String
51      */

52     public abstract String JavaDoc getValue(String JavaDoc fieldName);
53
54 }
55
Popular Tags