pylucene 3.5.0-3
[pylucene.git] / lucene-java-3.5.0 / lucene / contrib / highlighter / src / java / org / apache / lucene / search / vectorhighlight / SimpleFragmentsBuilder.java
1 package org.apache.lucene.search.vectorhighlight;
2
3 /**
4  * Licensed to the Apache Software Foundation (ASF) under one or more
5  * contributor license agreements.  See the NOTICE file distributed with
6  * this work for additional information regarding copyright ownership.
7  * The ASF licenses this file to You under the Apache License, Version 2.0
8  * (the "License"); you may not use this file except in compliance with
9  * the License.  You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19
20 import java.util.List;
21
22 import org.apache.lucene.search.vectorhighlight.FieldFragList.WeightedFragInfo;
23
24 /**
25  * A simple implementation of FragmentsBuilder.
26  *
27  */
28 public class SimpleFragmentsBuilder extends BaseFragmentsBuilder {
29
30   /**
31    * a constructor.
32    */
33   public SimpleFragmentsBuilder() {
34     super();
35   }
36
37   /**
38    * a constructor.
39    * 
40    * @param preTags array of pre-tags for markup terms.
41    * @param postTags array of post-tags for markup terms.
42    */
43   public SimpleFragmentsBuilder( String[] preTags, String[] postTags ) {
44     super( preTags, postTags );
45   }
46
47   public SimpleFragmentsBuilder( BoundaryScanner bs ) {
48     super( bs );
49   }
50
51   public SimpleFragmentsBuilder( String[] preTags, String[] postTags, BoundaryScanner bs ) {
52     super( preTags, postTags, bs );
53   }
54
55   /**
56    * do nothing. return the source list.
57    */
58   @Override
59   public List<WeightedFragInfo> getWeightedFragInfoList( List<WeightedFragInfo> src ) {
60     return src;
61   }
62 }