KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > services > search > AbstractObjectHandler


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 at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * 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 and
14  * limitations under the License.
15  */

16  
17 package org.apache.jetspeed.services.search;
18
19 import java.util.HashSet JavaDoc;
20 import java.util.Set JavaDoc;
21
22 /**
23  * Abstract handler that new handlers can dervie from
24  *
25  * @author <a HREF="mailto:jford@apache.org">Jeremy Ford</a>
26  * @version $Id: AbstractObjectHandler.java,v 1.3 2004/02/23 03:48:47 jford Exp $
27  */

28 public abstract class AbstractObjectHandler implements ObjectHandler
29 {
30     protected final HashSet JavaDoc fields = new HashSet JavaDoc();
31     protected final HashSet JavaDoc keywords = new HashSet JavaDoc();
32     
33
34     /**
35      * @see org.apache.jetspeed.services.search.ObjectHandler#getFields()
36      */

37     public Set JavaDoc getFields()
38     {
39        return fields;
40     }
41     
42     /**
43      * @see org.apache.jetspeed.services.search.ObjectHandler#getKeywords()
44      */

45     public Set JavaDoc getKeywords()
46     {
47         return keywords;
48     }
49
50 }
51
Popular Tags