1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.search;
18
19 import java.util.Set;
20
21 /***
22 * Contract for implementing a specific object handler. Implementation
23 * should convert the object into a document suitable for placement into
24 * search index.
25 *
26 * @author <a href="mailto:morciuch@apache.org">Mark Orciuch</a>
27 * @version $Id: ObjectHandler.java 516448 2007-03-09 16:25:47Z ate $
28 */
29 public interface ObjectHandler
30 {
31 /***
32 * Parses a specific object into a document suitable for index placement
33 *
34 * @param o
35 * @return
36 */
37 public ParsedObject parseObject(Object o);
38
39 /***
40 * Returns the set of fields used to create the parsed object.
41 * @return
42 */
43 public Set getFields();
44
45 /***
46 * Returns the set of keywords used to create the parsed object.
47 * @return
48 */
49 public Set getKeywords();
50 }
51