|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.basic.AbstractBookMetaData
org.crosswire.jsword.book.sword.SwordBookMetaData
public class SwordBookMetaData
A utility class for loading and representing Sword book configs.
Config file format. See also: http://sword.sourceforge.net/cgi-bin/twiki/view/Swordapi/ConfFileLayout
The contents of the About field are in rtf.
\ is used as a continuation line.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private ConfigEntryTable |
cet
|
(package private) static Map |
ENCODING_JAVA
The language strings need to be converted to Java charsets |
private BookCategory |
type
|
Fields inherited from class org.crosswire.jsword.book.basic.AbstractBookMetaData |
---|
DEFAULT_LANG_CODE |
Fields inherited from interface org.crosswire.jsword.book.BookMetaData |
---|
KEY_BOOK, KEY_CATEGORY, KEY_DRIVER, KEY_INDEXSTATUS, KEY_INITIALS, KEY_LANGUAGE, KEY_NAME |
Constructor Summary | |
---|---|
SwordBookMetaData(File file,
String internal)
Loads a sword config from a given File. |
|
SwordBookMetaData(Reader in,
String internal)
Loads a sword config from a given Reader. |
Method Summary | |
---|---|
private void |
buildProperties()
|
BookCategory |
getBookCategory()
What category of content is this, a Bible or a reference work like a Dictionary or Commentary. |
String |
getBookCharset()
Returns the Charset of the book based on the encoding attribute |
String |
getBookPath()
|
BookType |
getBookType()
Returns the Book Type. |
String |
getConfPath()
|
Filter |
getFilter()
Returns the sourceType. |
String |
getInitials()
The initials of this book - how people familiar with this book will know it, for example "NIV", "KJV". |
String |
getName()
The name of the book, for example "King James Version" or "Bible in Basic English" or "Greek". |
String |
getProperty(ConfigEntryType entry)
Get the string value for the property or null if it is not defined. |
boolean |
hasFeature(FeatureType feature)
Return whether the feature is supported by the book. |
boolean |
isEnciphered()
Indicate whether this book is enciphered and without a key. |
boolean |
isLeftToRight()
Return the orientation of the language of the Book. |
boolean |
isQuestionable()
Indicate whether this book is questionable. |
boolean |
isSupported()
Indicate whether this book is supported by JSword. |
org.jdom.Document |
toOSIS()
Get an OSIS representation of information concerning this Book. |
Methods inherited from class org.crosswire.jsword.book.basic.AbstractBookMetaData |
---|
addPropertyChangeListener, compareTo, equals, firePropertyChange, getDriver, getDriverName, getFullName, getIndexStatus, getLanguage, getLanguage, getOsisID, getProperties, getProperty, hashCode, putProperty, removePropertyChangeListener, setDriver, setIndexStatus, setProperties, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
static final Map ENCODING_JAVA
private ConfigEntryTable cet
private BookCategory type
Constructor Detail |
---|
public SwordBookMetaData(File file, String internal) throws IOException
IOException
public SwordBookMetaData(Reader in, String internal) throws IOException
IOException
Method Detail |
---|
public boolean isQuestionable()
BookMetaData
isQuestionable
in interface BookMetaData
isQuestionable
in class AbstractBookMetaData
public boolean isSupported()
BookMetaData
isSupported
in interface BookMetaData
isSupported
in class AbstractBookMetaData
public boolean isEnciphered()
BookMetaData
isEnciphered
in interface BookMetaData
isEnciphered
in class AbstractBookMetaData
public String getName()
BookMetaData
public String getBookCharset()
public BookType getBookType()
public Filter getFilter()
public String getConfPath()
public String getBookPath()
public BookCategory getBookCategory()
BookMetaData
public org.jdom.Document toOSIS()
BookMetaData
toOSIS
in interface BookMetaData
toOSIS
in class AbstractBookMetaData
public String getInitials()
BookMetaData
public String getProperty(ConfigEntryType entry)
entry
- the ConfigEntryType
public boolean isLeftToRight()
BookMetaData
public boolean hasFeature(FeatureType feature)
BookMetaData
hasFeature
in interface BookMetaData
hasFeature
in class AbstractBookMetaData
private void buildProperties()
|
Copyright ยจ 2003-2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |