Coverage Report - org.crosswire.jsword.index.lucene.analysis.XRefFilter
 
Classes in this File Line Coverage Branch Coverage Complexity
XRefFilter
0%
0/5
N/A
1
 
 1  
 /**
 2  
  * Distribution License:
 3  
  * JSword is free software; you can redistribute it and/or modify it under
 4  
  * the terms of the GNU Lesser General Public License, version 2.1 or later
 5  
  * as published by the Free Software Foundation. This program is distributed
 6  
  * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 7  
  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 8  
  * See the GNU Lesser General Public License for more details.
 9  
  *
 10  
  * The License is available on the internet at:
 11  
  *      http://www.gnu.org/copyleft/lgpl.html
 12  
  * or by writing to:
 13  
  *      Free Software Foundation, Inc.
 14  
  *      59 Temple Place - Suite 330
 15  
  *      Boston, MA 02111-1307, USA
 16  
  *
 17  
  * © CrossWire Bible Society, 2007 - 2016
 18  
  *
 19  
  */
 20  
 package org.crosswire.jsword.index.lucene.analysis;
 21  
 
 22  
 import java.io.IOException;
 23  
 
 24  
 import org.apache.lucene.analysis.TokenStream;
 25  
 import org.crosswire.jsword.book.Book;
 26  
 
 27  
 /**
 28  
  * A KeyFilter normalizes OSISrefs.
 29  
  * 
 30  
  * @see gnu.lgpl.License The GNU Lesser General Public License for details.
 31  
  * @author DM Smith
 32  
  */
 33  
 public class XRefFilter extends AbstractBookTokenFilter {
 34  
     /**
 35  
      * Construct filtering <i>in</i>.
 36  
      * @param in 
 37  
      */
 38  
     public XRefFilter(TokenStream in) {
 39  0
         this(null, in);
 40  0
     }
 41  
 
 42  
     /**
 43  
      * Construct an XRefFilter tied to a Book.
 44  
      * 
 45  
      * @param book
 46  
      *            the book to which this TokenFilter is tied.
 47  
      * @param in
 48  
      *            the input TokenStream
 49  
      */
 50  
     public XRefFilter(Book book, TokenStream in) {
 51  0
         super(book, in);
 52  0
     }
 53  
 
 54  
     /*
 55  
      * (non-Javadoc)
 56  
      * 
 57  
      * @see org.apache.lucene.analysis.TokenStream#incrementToken()
 58  
      */
 59  
     @Override
 60  
     public boolean incrementToken() throws IOException {
 61  
         // TODO(DMS): actually normalize
 62  0
         return input.incrementToken();
 63  
     }
 64  
 
 65  
 }