pylucene 3.5.0-3
[pylucene.git] / lucene-java-3.5.0 / lucene / contrib / facet / src / test / org / apache / lucene / facet / enhancements / CategoryEnhancementDummy1.java
1 package org.apache.lucene.facet.enhancements;
2
3 import org.apache.lucene.analysis.TokenStream;
4
5 import org.apache.lucene.facet.enhancements.CategoryEnhancement;
6 import org.apache.lucene.facet.enhancements.params.EnhancementsIndexingParams;
7 import org.apache.lucene.facet.index.attributes.CategoryAttribute;
8 import org.apache.lucene.facet.index.attributes.CategoryProperty;
9 import org.apache.lucene.facet.index.streaming.CategoryListTokenizer;
10 import org.apache.lucene.facet.taxonomy.TaxonomyWriter;
11
12 /**
13  * Licensed to the Apache Software Foundation (ASF) under one or more
14  * contributor license agreements.  See the NOTICE file distributed with
15  * this work for additional information regarding copyright ownership.
16  * The ASF licenses this file to You under the Apache License, Version 2.0
17  * (the "License"); you may not use this file except in compliance with
18  * the License.  You may obtain a copy of the License at
19  *
20  *     http://www.apache.org/licenses/LICENSE-2.0
21  *
22  * Unless required by applicable law or agreed to in writing, software
23  * distributed under the License is distributed on an "AS IS" BASIS,
24  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25  * See the License for the specific language governing permissions and
26  * limitations under the License.
27  */
28
29 public class CategoryEnhancementDummy1 implements CategoryEnhancement {
30
31   public boolean generatesCategoryList() {
32     return false;
33   }
34
35   public String getCategoryListTermText() {
36     return null;
37   }
38
39   public CategoryListTokenizer getCategoryListTokenizer(
40       TokenStream tokenizer, EnhancementsIndexingParams indexingParams,
41       TaxonomyWriter taxonomyWriter) {
42     return null;
43   }
44
45   public byte[] getCategoryTokenBytes(CategoryAttribute categoryAttribute) {
46     return null;
47   }
48
49   public Object extractCategoryTokenData(byte[] buffer, int offset, int length) {
50     return null;
51   }
52
53   public Class<? extends CategoryProperty> getRetainableProperty() {
54     return null;
55   }
56
57   @Override
58   public boolean equals(Object o) {
59     if (o instanceof CategoryEnhancementDummy1) {
60       return true;
61     }
62     return false;
63   }
64   
65   @Override
66   public int hashCode() {
67     return super.hashCode();
68   }
69   
70 }