|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.book.basic.AbstractBookMetaData
public abstract class AbstractBookMetaData
for license details.
The copyright to this program is held by it's authors.| Field Summary | |
|---|---|
private BookDriver |
driver
|
private IndexStatus |
indexStatus
|
private Map<String,Object> |
prop
The single key version of the properties |
| Fields inherited from interface org.crosswire.jsword.book.BookMetaData |
|---|
KEY_BOOK, KEY_CATEGORY, KEY_DRIVER, KEY_FONT, KEY_INDEXSTATUS, KEY_INITIALS, KEY_LIBRARY_URI, KEY_LOCATION_URI, KEY_NAME, KEY_VERSIFICATION, KEY_XML_LANG |
| Constructor Summary | |
|---|---|
AbstractBookMetaData()
|
|
| Method Summary | |
|---|---|
int |
compareTo(BookMetaData obj)
|
boolean |
equals(Object obj)
|
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. |
IndexStatus |
getIndexStatus()
Has anyone generated a search index for this Book? |
KeyType |
getKeyType()
How this Book organizes it's keys. |
Language |
getLanguage()
The language of the book. |
URI |
getLibrary()
Get the base URI for library of this module. |
URI |
getLocation()
Get the base URI for relative URIs in the document. |
String |
getOsisID()
Calculated field: Get an OSIS identifier for the OsisText.setOsisIDWork() and the Work.setOsisWork() methods. |
Map<String,Object> |
getProperties()
Get a list of all the properties available to do with this Book. |
Object |
getProperty(String key)
|
String |
getUnlockKey()
Gets the unlock key for the module. |
boolean |
hasFeature(FeatureType feature)
Return whether the feature is supported by the book. |
int |
hashCode()
|
boolean |
isEnciphered()
Indicate whether this book is enciphered. |
boolean |
isLocked()
Indicate whether this book is enciphered and without a key. |
boolean |
isQuestionable()
Indicate whether this book is questionable. |
boolean |
isSupported()
Indicate whether this book is supported by JSword. |
void |
putProperty(String key,
Object value)
|
void |
setDriver(BookDriver driver)
|
void |
setIndexStatus(IndexStatus newValue)
This method does not alter the index status, however it is for Indexers that are responsible for indexing and have changed the status themselves. |
void |
setLanguage(Language language)
|
void |
setLibrary(URI library)
Set the base URI for library of this module. |
void |
setLocation(URI location)
Set the base URI for relative URIs in the document. |
void |
setProperties(Map<String,Object> newProperties)
|
org.jdom2.Document |
toOSIS()
Get an OSIS representation of information concerning this Book. |
String |
toString()
|
boolean |
unlock(String unlockKey)
Unlocks a book with the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.crosswire.jsword.book.BookMetaData |
|---|
getBookCategory, getInitials, getName, isLeftToRight |
| Field Detail |
|---|
private Map<String,Object> prop
private BookDriver driver
private IndexStatus indexStatus
| Constructor Detail |
|---|
public AbstractBookMetaData()
| Method Detail |
|---|
public KeyType getKeyType()
BookMetaData
getKeyType in interface BookMetaDatapublic BookDriver getDriver()
BookMetaData
getDriver in interface BookMetaDatapublic String getDriverName()
BookMetaData
getDriverName in interface BookMetaDatapublic boolean hasFeature(FeatureType feature)
BookMetaData
hasFeature in interface BookMetaDatapublic String getOsisID()
BookMetaData
getOsisID in interface BookMetaDatapublic boolean isSupported()
BookMetaData
isSupported in interface BookMetaDatapublic boolean isEnciphered()
BookMetaData
isEnciphered in interface BookMetaDatapublic boolean isLocked()
BookMetaData
isLocked in interface BookMetaDatapublic boolean unlock(String unlockKey)
BookMetaData
unlock in interface BookMetaDataunlockKey - the key to try
public String getUnlockKey()
BookMetaData
getUnlockKey in interface BookMetaDatapublic boolean isQuestionable()
BookMetaData
isQuestionable in interface BookMetaDatapublic Language getLanguage()
BookMetaData
getLanguage in interface BookMetaDatapublic void setLanguage(Language language)
language - The language to set.public URI getLibrary()
BookMetaData
getLibrary in interface BookMetaData
public void setLibrary(URI library)
throws MissingDataFilesException
BookMetaData
setLibrary in interface BookMetaDatalibrary - the base URI or null if there is none
MissingDataFilesException - indicates missing data filespublic void setLocation(URI location)
BookMetaData
setLocation in interface BookMetaDatalocation - the base URI or null if there is nonepublic URI getLocation()
BookMetaData
getLocation in interface BookMetaDatapublic Map<String,Object> getProperties()
BookMetaData
getProperties in interface BookMetaDatapublic void setProperties(Map<String,Object> newProperties)
newProperties - public Object getProperty(String key)
getProperty in interface BookMetaDatakey - the key of the property.
public void putProperty(String key,
Object value)
putProperty in interface BookMetaDatakey - the key of the property to setvalue - the value of the propertypublic IndexStatus getIndexStatus()
BookMetaData
getIndexStatus in interface BookMetaDataIndexManagerpublic void setIndexStatus(IndexStatus newValue)
BookMetaData
setIndexStatus in interface BookMetaDataIndexManagerpublic org.jdom2.Document toOSIS()
BookMetaData
toOSIS in interface BookMetaDatapublic void setDriver(BookDriver driver)
driver - The driver to set.public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(BookMetaData obj)
compareTo in interface Comparable<BookMetaData>public String toString()
toString in class Object
|
Copyright ? 2003-2011 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||