|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.jsword.passage.AbstractKeyList
public abstract class AbstractKeyList
An implementation of some of the easier methods from Key.
The GNU Lesser General Public License for details.,
Serialized Form| Nested Class Summary | |
|---|---|
(package private) static class |
AbstractKeyList.NameVisitor
The NameVisitor constructs a readable representation of the
Passage. |
(package private) static class |
AbstractKeyList.OsisIDVisitor
The OsisRefVisitor constructs a readable representation of
the Passage, using OSIS names. |
(package private) static class |
AbstractKeyList.OsisRefVisitor
The OsisRefVisitor constructs a readable representation of
the Passage, using OSIS names. |
| Field Summary | |
|---|---|
private String |
name
The common user visible name for this work |
private static long |
serialVersionUID
Serialization ID |
| Constructor Summary | |
|---|---|
protected |
AbstractKeyList(String name)
Build an AbstractKeyList with the given name. |
| Method Summary | |
|---|---|
AbstractKeyList |
clone()
This needs to be declared here so that it is visible as a method on a derived Key. |
int |
compareTo(Key that)
|
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. |
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. |
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 |
protected static void |
retain(Key alter,
Key base)
Utility to remove all the keys from alter that are not in base |
void |
retainAll(Key key)
Removes all but the specified element from this set. |
void |
setName(String name)
Override the default name with a custom name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.crosswire.jsword.passage.Key |
|---|
addAll, blur, canHaveChildren, clear, get, getCardinality, getChildCount, getParent, indexOf, removeAll |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Field Detail |
|---|
private String name
private static final long serialVersionUID
| Constructor Detail |
|---|
protected AbstractKeyList(String name)
name - | Method Detail |
|---|
public boolean isEmpty()
Key
isEmpty in interface Keypublic boolean contains(Key key)
Key
contains in interface Keykey - element whose presence in this set is to be tested.
public void retainAll(Key key)
Key
retainAll in interface Keykey - object to be left in this set.
protected static void retain(Key alter,
Key base)
alter - The key to remove keys frombase - The check keypublic String toString()
toString in class Objectpublic void setName(String name)
name - public String getName()
Key
getName in interface Keypublic String getName(Key base)
Key
getName in interface Keybase - The key to use to cut down unnecessary output.
public String getRootName()
Key
getRootName in interface Keypublic String getOsisRef()
Key
getOsisRef in interface Keypublic String getOsisID()
Key
getOsisID in interface Keypublic boolean equals(Object obj)
Key
equals in interface Keyequals in class Objectpublic int hashCode()
Key
hashCode in interface KeyhashCode in class Objectpublic int compareTo(Key that)
compareTo in interface Comparable<Key>public AbstractKeyList clone()
Key
clone in interface Keyclone in class Object
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||