org.crosswire.jsword.book.sword
Class IndexKey
java.lang.Object
org.crosswire.jsword.passage.DefaultLeafKeyList
org.crosswire.jsword.book.sword.IndexKey
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable, Iterable, Key
class IndexKey
- extends DefaultLeafKeyList
A Key that knows where the data is in the real file.
- Author:
- Joe Walker [joe at eireneh dot com]
- See Also:
for license details.
The copyright to this program is held by it's authors.
Constructor Summary |
IndexKey(String text)
Setup with the key name. |
IndexKey(String text,
int offset,
int size,
Key parent)
Setup with the key name and positions of data in the file |
Methods inherited from class org.crosswire.jsword.passage.DefaultLeafKeyList |
addAll, blur, canHaveChildren, clear, compareTo, contains, equals, get, getChildCount, getName, getName, getOsisID, getOsisRef, getParent, hashCode, indexOf, isEmpty, iterator, removeAll, retainAll, toString |
offset
private int offset
size
private int size
serialVersionUID
private static final long serialVersionUID
- Serialization ID
- See Also:
- Constant Field Values
IndexKey
IndexKey(String text,
int offset,
int size,
Key parent)
- Setup with the key name and positions of data in the file
IndexKey
IndexKey(String text)
- Setup with the key name. Use solely for searching.
getOffset
public int getOffset()
- Returns:
- the offset
setOffset
public void setOffset(int newOffset)
- Parameters:
newOffset
- the offset to set
getSize
public int getSize()
- Returns:
- the size
setSize
public void setSize(int newSize)
- Parameters:
newSize
- the size to set
clone
public Object clone()
- Description copied from interface:
Key
- This needs to be declared here so that it is visible as a method
on a derived Key.
- Specified by:
clone
in interface Key
- Overrides:
clone
in class DefaultLeafKeyList
- Returns:
- A complete copy of ourselves