|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.sword.AbstractBackend
org.crosswire.jsword.book.sword.AbstractKeyBackend
public abstract class AbstractKeyBackend
A Backend that can be used as a global key list.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormConstructor Summary | |
---|---|
AbstractKeyBackend(SwordBookMetaData sbmd)
Simple ctor |
Method Summary | |
---|---|
void |
addAll(Key key)
Adds the specified element to this set if it is not already present. |
void |
blur(int by,
RestrictionType restrict)
Widen the range of the verses/keys in this list. |
boolean |
canHaveChildren()
Returns false if the receiver is a leaf node and can not have children. |
void |
clear()
Removes all of the elements from this set (optional operation). |
Object |
clone()
This needs to be declared here so that it is visible as a method on a derived Key. |
int |
compareTo(Object obj)
|
boolean |
contains(Key key)
Returns true if this set contains the specified element. |
boolean |
equals(Object obj)
This needs to be declared here so that it is visible as a method on a derived Key. |
int |
getChildCount()
Returns the number of children that this node has. |
String |
getName()
A Human readable version of the Key. |
String |
getName(Key base)
Translate the Key into a human readable string, with the assumption that the specified Key has just been output, so if we are in the same region, we do not need to display the region name, and so on. |
String |
getOsisID()
The OSIS defined id specification for this Key. |
String |
getOsisRef()
The OSIS defined reference specification for this Key. |
Key |
getParent()
All keys have parents unless they are the root of a Key. |
String |
getRootName()
A Human readable version of the Key's top level name. |
int |
hashCode()
This needs to be declared here so that it is visible as a method on a derived Key. |
boolean |
isEmpty()
Does this Key have 0 members |
Iterator |
iterator()
|
void |
removeAll(Key key)
Removes the specified elements from this set if it is present. |
void |
retainAll(Key key)
Removes all but the specified element from this set. |
Methods inherited from class org.crosswire.jsword.book.sword.AbstractBackend |
---|
decipher, encipher, getBookMetaData, getExpandedDataPath, getRawText, isSupported, isWritable, readIndex, setRawText |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.crosswire.jsword.passage.Key |
---|
get, getCardinality, indexOf |
Methods inherited from interface org.crosswire.common.activate.Activatable |
---|
activate, deactivate |
Constructor Detail |
---|
public AbstractKeyBackend(SwordBookMetaData sbmd)
sbmd
- the book's metadataMethod Detail |
---|
public boolean canHaveChildren()
Key
canHaveChildren
in interface Key
public int getChildCount()
Key
getChildCount
in interface Key
public boolean isEmpty()
Key
isEmpty
in interface Key
public boolean contains(Key key)
Key
contains
in interface Key
contains
in class AbstractBackend
key
- element whose presence in this set is to be tested.
public Iterator iterator()
iterator
in interface Iterable
public void addAll(Key key)
Key
addAll
in interface Key
key
- element to be added to this set.public void removeAll(Key key)
Key
removeAll
in interface Key
key
- object to be removed from this set, if present.public void clear()
Key
clear
in interface Key
public Key getParent()
Key
getParent
in interface Key
public Object clone()
Key
clone
in interface Key
clone
in class Object
public String getName()
Key
getName
in interface Key
public String getName(Key base)
Key
getName
in interface Key
base
- The key to use to cut down unnecessary output.
public String getOsisID()
Key
getOsisID
in interface Key
public String getOsisRef()
Key
getOsisRef
in interface Key
public String getRootName()
Key
getRootName
in interface Key
public void retainAll(Key key)
Key
retainAll
in interface Key
key
- object to be left in this set.public boolean equals(Object obj)
Key
equals
in interface Key
equals
in class Object
public int hashCode()
Key
hashCode
in interface Key
hashCode
in class Object
public int compareTo(Object obj)
compareTo
in interface Comparable
public void blur(int by, RestrictionType restrict)
Key
blur
in interface Key
by
- The number of verses/keys to widen byrestrict
- How should we restrict the blurring?Passage
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |