|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.model.AuthorCollection
public class AuthorCollection
Nested Class Summary | |
---|---|
static class |
AuthorCollection.AuthorCollectionConverter
AuthorCollectionConverter is an inner class used for serializing AuthorCollection objects via XStream. |
Field Summary | |
---|---|
static int |
version
The version number of this class. |
Constructor Summary | |
---|---|
AuthorCollection()
|
Method Summary | |
---|---|
void |
addAdapter(ListModelChangeListener adapter)
|
void |
clear()
|
Author |
getAuthorById(int id)
Given an id, find the Author object in the list and return it. |
java.lang.Object |
getElementAt(int pos)
|
int |
getPosInList(java.lang.Object item)
|
int |
getSize()
|
boolean |
isNameInList(java.lang.String name)
|
void |
recreateAdapterCollection()
After loading a new file, the AdapterCollection (which is marked as transient) will not be recreated during the deserialization process. |
void |
registerAuthor(Author author)
Adds the given Author to the list. |
void |
removeAdapter(ListModelChangeListener adapter)
|
void |
restoreCitationReferences()
After deserializing the Authors, each Author object needs to rebuild its HashMap of references to the Citations registered for the author. |
void |
unregisterAuthor(Author author)
Eliminates the given Author from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int version
Constructor Detail |
---|
public AuthorCollection()
Method Detail |
---|
public void registerAuthor(Author author) throws DuplicateRecordException
author
- The Author object to be registered.
DuplicateRecordException
- Thrown if there is already an Author with the same name or id in the list.public void unregisterAuthor(Author author)
author
- The Author object to remove.public Author getAuthorById(int id)
id
- An integer indicating the unique ID of the Author object.
public java.lang.Object getElementAt(int pos) throws java.lang.ArrayIndexOutOfBoundsException
getElementAt
in interface ListModelAdaptee
java.lang.ArrayIndexOutOfBoundsException
public int getSize()
getSize
in interface ListModelAdaptee
public void clear()
public boolean isNameInList(java.lang.String name)
public int getPosInList(java.lang.Object item)
getPosInList
in interface ListModelAdaptee
public void addAdapter(ListModelChangeListener adapter)
addAdapter
in interface ListModelAdaptee
public void removeAdapter(ListModelChangeListener adapter)
removeAdapter
in interface ListModelAdaptee
public void recreateAdapterCollection()
recreateAdapterCollection
in interface ListModelAdaptee
public void restoreCitationReferences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |