1/*2 * Copyright 2000-2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */16packageorg.apache.jetspeed.services.search;
1718import java.util.Set;
1920/***21 * Contract for implementing a specific object handler. Implementation22 * should convert the object into a document suitable for placement into23 * search index.24 * 25 * @author <a href="mailto:morciuch@apache.org">Mark Orciuch</a>26 * @version $Id: ObjectHandler.java,v 1.4 2004/02/23 03:48:47 jford Exp $27 */28publicinterfaceObjectHandler29 {
30/***31 * Parses a specific object into a document suitable for index placement32 * 33 * @param o34 * @return 35 */36publicParsedObject parseObject(Object o);
3738/***39 * Returns the set of fields used to create the parsed object.40 * @return41 */42public Set getFields();
4344/***45 * Returns the set of keywords used to create the parsed object.46 * @return47 */48public Set getKeywords();
49 }
50