|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.basic.AbstractBook
public abstract class AbstractBook
AbstractBook implements a few of the more generic methods of Book. This class does a lot of work in helping make search easier, and implementing some basic write methods.
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private BookMetaData |
bmd
The meta data for this book |
private Searcher |
searcher
How do we perform searches |
| 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 | |
|---|---|
AbstractBook()
|
|
| Method Summary | |
|---|---|
void |
activate(Lock lock)
Called to indicate that the Book should initialize itself, and consume whatever system resources it needs to be able to respond to other queries. |
void |
addPropertyChangeListener(PropertyChangeListener li)
Adds a PropertyChangeListener to the listener list. |
int |
compareTo(Object obj)
|
void |
deactivate(Lock lock)
Called to indicate that the Book should release whatever system resources it can to make way for other uses. |
boolean |
equals(Object obj)
|
Key |
find(SearchRequest request)
Retrieval: For a given search spec find a list of references to it. |
Key |
find(String request)
Retrieval: For a given search spec find a list of references to it. |
Book |
getBook()
|
BookCategory |
getBookCategory()
What category of content is this, a Bible or a reference work like a Dictionary or Commentary. |
BookMetaData |
getBookMetaData()
Meta-Information: What version of the Bible is this? |
BookDriver |
getDriver()
Accessor for the driver that runs this Book. |
String |
getDriverName()
Calculated field: The name of the name, which could be helpful to distinguish similar Books available through 2 BookDrivers. |
String |
getFullName()
Calculated field: The full name of the book, for example The format is "name, (Driver)" |
IndexStatus |
getIndexStatus()
Has anyone generated a search index for this Book? |
String |
getInitials()
The initials of this book - how people familiar with this book will know it, for example "NIV", "KJV". |
String |
getLanguage()
The language of the book is the common name for the iso639 code. |
String |
getName()
The name of the book, for example "King James Version" or "Bible in Basic English" or "Greek". |
String |
getOsisID()
Calculated field: Get an OSIS identifier for the OsisText.setOsisIDWork() and the Work.setOsisWork() methods. |
Map |
getProperties()
Get a list of all the properties available to do with this Book. |
boolean |
hasFeature(FeatureType feature)
Return whether the feature is supported by the book. |
int |
hashCode()
|
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. |
void |
removePropertyChangeListener(PropertyChangeListener li)
Removes a PropertyChangeListener from the listener list. |
void |
setBookMetaData(BookMetaData bmd)
Set the meta-information for this book. |
void |
setIndexStatus(IndexStatus status)
This method does not alter the index status, however it is for Indexers that are responsible for indexing and have changed the status themselves. |
org.jdom.Document |
toOSIS()
Get an OSIS representation of information concerning this Book. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.crosswire.jsword.book.Book |
|---|
getData, getRawData |
| Methods inherited from interface org.crosswire.jsword.passage.KeyFactory |
|---|
createEmptyKeyList, getGlobalKeyList, getKey, getValidKey |
| Field Detail |
|---|
private Searcher searcher
private BookMetaData bmd
| Constructor Detail |
|---|
public AbstractBook()
| Method Detail |
|---|
public final BookMetaData getBookMetaData()
Book
getBookMetaData in interface Bookpublic final void setBookMetaData(BookMetaData bmd)
Book
setBookMetaData in interface Bookpublic void activate(Lock lock)
Activatable
activate in interface Activatablelock - An attempt to ensure that only the Activator calls this methodpublic void deactivate(Lock lock)
Activatable
deactivate in interface Activatablelock - An attempt to ensure that only the Activator calls this method
public Key find(String request)
throws BookException
Book
find in interface Bookrequest - The search spec.
BookException - If anything goes wrong with this method
public Key find(SearchRequest request)
throws BookException
Book
find in interface Bookrequest - The search spec.
BookException - If anything goes wrong with this methodpublic Book getBook()
public BookDriver getDriver()
BookMetaData
getDriver in interface BookMetaDatapublic String getDriverName()
BookMetaData
getDriverName in interface BookMetaDatapublic String getFullName()
BookMetaData
getFullName in interface BookMetaDatapublic IndexStatus getIndexStatus()
BookMetaData
getIndexStatus in interface BookMetaDataIndexManagerpublic void setIndexStatus(IndexStatus status)
BookMetaData
setIndexStatus in interface BookMetaDataIndexManagerpublic String getInitials()
BookMetaData
getInitials in interface BookMetaDatapublic String getLanguage()
BookMetaData
getLanguage in interface BookMetaDatapublic String getName()
BookMetaData
getName in interface BookMetaDatapublic String getOsisID()
BookMetaData
getOsisID in interface BookMetaDatapublic Map getProperties()
BookMetaData
getProperties in interface BookMetaDatapublic BookCategory getBookCategory()
BookMetaData
getBookCategory in interface BookMetaDatapublic boolean isLeftToRight()
BookMetaData
isLeftToRight in interface BookMetaDatapublic boolean isSupported()
BookMetaData
isSupported in interface BookMetaDatapublic boolean isEnciphered()
BookMetaData
isEnciphered in interface BookMetaDatapublic boolean isQuestionable()
BookMetaData
isQuestionable in interface BookMetaDatapublic boolean hasFeature(FeatureType feature)
BookMetaData
hasFeature in interface BookMetaDatapublic void removePropertyChangeListener(PropertyChangeListener li)
BookMetaDataPropertyChangeListener from the listener list.
removePropertyChangeListener in interface BookMetaDatali - the PropertyChangeListener to be removedpublic void addPropertyChangeListener(PropertyChangeListener li)
BookMetaDataPropertyChangeListener to the listener list.
The listener is registered for all properties. However the only one likely
to change at the time of writing is the Index Status.
A PropertyChangeEvent will get fired in response
to setting a bound property, such as setIndexStatus.
addPropertyChangeListener in interface BookMetaDatali - the PropertyChangeListener to be addedpublic org.jdom.Document toOSIS()
BookMetaData
toOSIS in interface BookMetaDatapublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Object obj)
compareTo in interface Comparablepublic String toString()
toString in class Object
|
Copyright ยจ 2003-2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||