public boolean test(Book book) { return book.hasFeature(feature) && !book.isLocked(); }
public Book getDefaultBibleWithStrongs() { List<Book> bibles = getBibles(); for (Book book : bibles) { if (book.hasFeature(FeatureType.STRONGS_NUMBERS)) { if (book.getIndexStatus().equals(IndexStatus.DONE)) { return book; } } } return null; }
if (currentBible.hasFeature(FeatureType.STRONGS_NUMBERS)) { strongsBible = currentBible; } else {
/** * */ public StrongsAnalysis() { Book bible = Books.installed().getBook("KJV"); if (!bible.hasFeature(FeatureType.STRONGS_NUMBERS)) { bible = null; List<Book> bibles = Books.installed().getBooks(new BookFilters.BookFeatureFilter(FeatureType.STRONGS_NUMBERS)); if (!bibles.isEmpty()) { bible = bibles.get(0); } } if (bible == null) { return; } List<Key> errors = new ArrayList<Key>(); StrongsMapSet sms = new StrongsMapSet(); analyze(sms, bible, errors, bible.getGlobalKeyList()); }
public void testFindAllStrongsRef() { List<Book> bibles = Books.installed().getBooks(BookFilters.getBibles()); for (Book book : bibles) { try { if (book.hasFeature(FeatureType.STRONGS_NUMBERS)) { if (!book.getIndexStatus().equals(IndexStatus.DONE)) { System.out.println("Unindexed:"+book); } else { Key resultsH = book.find("+[Gen 1:1] strong:h7225"); //beginning Key resultsG = book.find("+[John 1:1] strong:g746"); //beginning Key resultsGOT = book.find("+[Gen 1:1] strong:g746"); //beginning if (resultsH.getCardinality()==0 && resultsG.getCardinality()==0 && resultsGOT.getCardinality()==0) { System.out.println("No refs returned in"+book.getInitials()); } else { System.out.println("Ok:"+book.getInitials()+" "+resultsH.getCardinality()+"/"+resultsG.getCardinality()+ "/" + resultsGOT.getCardinality()); } // assertTrue("No refs returned in"+book.getInitials(), resultsH.getCardinality()>0 || resultsG.getCardinality()>0); } } } catch (Exception e) { System.out.println("Error:"+book.getInitials()+":"+e.getMessage()); } } }
if (book.hasFeature(FeatureType.HEBREW_DEFINITIONS)) { } else if (book.hasFeature(FeatureType.GREEK_DEFINITIONS)) {