package com.tyndalehouse.step.tools.osis; import com.tyndalehouse.step.core.models.InterlinearMode; import com.tyndalehouse.step.core.models.LookupOption; import com.tyndalehouse.step.core.service.jsword.impl.JSwordPassageServiceImpl; import com.tyndalehouse.step.core.utils.TestUtils; import org.crosswire.jsword.book.Book; import org.crosswire.jsword.book.BookData; import org.crosswire.jsword.book.Books; import org.jdom2.Document; import org.jdom2.Element; import org.jdom2.input.JDOMParseException; import org.jdom2.input.SAXBuilder; import org.jdom2.output.Format; import org.jdom2.output.XMLOutputter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.StringReader; import java.util.ArrayList; import java.util.List; /** * Reads an osis ref in a module * * @author chrisburrell * */ public class BibleInfoReader { private static final Logger LOGGER = LoggerFactory.getLogger(BibleInfoReader.class); /** * Just shows XML on the stdout * * @param args not used * @throws Exception any kind of exception */ public static void main(final String[] args) throws Exception { final String version = "Chiuns"; final Book currentBook = Books.installed().getBook(version); LOGGER.debug("{}", currentBook.getName()); LOGGER.debug("{}", currentBook.getProperties().get("shortName")); } }