Coverage Report - org.crosswire.jsword.index.IndexPolicyAdapter
 
Classes in this File Line Coverage Branch Coverage Complexity
IndexPolicyAdapter
0%
0/8
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, 2013 - 2016
 18  
  */
 19  
 package org.crosswire.jsword.index;
 20  
 
 21  
 /**
 22  
  * The IndexPolicyAdapter provides for application resilience against
 23  
  * change to IndexPolicy. It defines a reasonable set of defaults for
 24  
  * a desktop application, but may not be appropriate for memory limited
 25  
  * devices, such as phones, tablets, pdas. The defaults are documented
 26  
  * in {@link IndexPolicy}.
 27  
  * 
 28  
  *
 29  
  * @see gnu.lgpl.License The GNU Lesser General Public License for details.
 30  
  * @author DM Smith
 31  
  */
 32  0
 public class IndexPolicyAdapter implements IndexPolicy {
 33  
 
 34  
     /* (non-Javadoc)
 35  
      * @see org.crosswire.jsword.index.IndexPolicy#isStrongsIndexed()
 36  
      */
 37  
     public boolean isStrongsIndexed() {
 38  0
         return true;
 39  
     }
 40  
 
 41  
     /* (non-Javadoc)
 42  
      * @see org.crosswire.jsword.index.IndexPolicy#isMorphIndexed()
 43  
      */
 44  
     public boolean isMorphIndexed() {
 45  0
         return true;
 46  
     }
 47  
 
 48  
     /* (non-Javadoc)
 49  
      * @see org.crosswire.jsword.index.IndexPolicy#isNoteIndexed()
 50  
      */
 51  
     public boolean isNoteIndexed() {
 52  0
         return true;
 53  
     }
 54  
 
 55  
     /* (non-Javadoc)
 56  
      * @see org.crosswire.jsword.index.IndexPolicy#isTitleIndexed()
 57  
      */
 58  
     public boolean isTitleIndexed() {
 59  0
         return true;
 60  
     }
 61  
 
 62  
     /* (non-Javadoc)
 63  
      * @see org.crosswire.jsword.index.IndexPolicy#isXrefIndexed()
 64  
      */
 65  
     public boolean isXrefIndexed() {
 66  0
         return true;
 67  
     }
 68  
 
 69  
     /* (non-Javadoc)
 70  
      * @see org.crosswire.jsword.index.IndexPolicy#getRAMBufferSize()
 71  
      */
 72  
     public int getRAMBufferSize() {
 73  0
         return 16;
 74  
     }
 75  
 
 76  
     /* (non-Javadoc)
 77  
      * @see org.crosswire.jsword.index.IndexPolicy#isSerial()
 78  
      */
 79  
     public boolean isSerial() {
 80  0
         return false;
 81  
     }
 82  
 
 83  
 }