|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ujap.bibi.KeyGenerator ujap.bibi.AuthorYearKey
Generates keys in the form "Author_2003" for one author and "Author_et_al_2003" for more than one author. Expects authors to be a String in bibi format: "Lastname, F.M. and Author, V.I."
Nested Class Summary |
Nested classes inherited from class ujap.bibi.KeyGenerator |
|
Field Summary |
Fields inherited from class ujap.bibi.KeyGenerator |
GENERATE_ALL, GENERATE_NONE, GENERATE_ONLY_EMPTY, GENERATE_SELECTED |
Constructor Summary | |
(package private) |
AuthorYearKey()
|
Method Summary | |
private Set |
createKeySet(Collection entries)
returns a set of Strings with all entry keys in the bibtex file |
void |
generateKey(Entry e,
Collection allEntries)
generate a key for a single Entry. |
void |
generateKeysForAll(Collection c)
generate keys for all Entries in the Collection |
void |
generateKeysForEmpty(Collection c)
generate keys for all Entries that do not have a key (null or empty String) yet. |
private void |
generateSingleKey(Entry e,
Set keys)
create and set a key for this entry and add it to the key set. |
private String |
parseAuthors(String authors)
evaluate author string and return the first author. |
Methods inherited from class ujap.bibi.KeyGenerator |
getResources, showDialog |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
AuthorYearKey()
Method Detail |
public void generateKeysForAll(Collection c)
KeyGenerator
generateKeysForAll
in class KeyGenerator
public void generateKeysForEmpty(Collection c)
KeyGenerator
generateKeysForEmpty
in class KeyGenerator
private Set createKeySet(Collection entries)
public void generateKey(Entry e, Collection allEntries)
KeyGenerator
generateKey
in class KeyGenerator
e
- the Entry for which to generate the key.allEntries
- a Collection of all entries; required because
keys have to be unique and if the generator doesn't know all
keys, it cannot be sure the newly generated one is unique.private void generateSingleKey(Entry e, Set keys)
e
- the entry for which to determine a keykeys
- the set containing all keys (strings) in the current
bibtex fileprivate String parseAuthors(String authors)
|
Bibi 19 Oct 2005 21:04 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |