|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.model.CitationSet
public class CitationSet
A CitationSet holds an ordered set of Citations, that can be iterated over. It can hold sub-sets, each of which can provide a header. It can be generated by providing an Iterator to the constructor, or by using the add() method to add Citations one by one
Constructor Summary | |
---|---|
CitationSet()
Creates an empty CitationSet, to which Citations can be added by the add() method, preserving the order in which they are added. |
|
CitationSet(java.util.Iterator iterator)
This constructor is used to create a CitationSet containing all of the Citations from the CiteBook, via an Iterator directly. |
Method Summary | |
---|---|
void |
add(Citation citation)
Add a Citation to the CitationSet, preserving the current order of elements |
Citation |
getNextCitation()
Returns the next Citation in the currently sorted CitationSet. |
int |
getSize()
|
boolean |
hasNext()
Returns true if there is at least one more Citation left in the CitationSet |
void |
setComparators(java.util.Vector comparators)
Sets the Comparators to be used in sorting. |
void |
sort()
Perform a sort of the CitationSet, according to the Commparators currently registered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CitationSet(java.util.Iterator iterator)
public CitationSet()
Method Detail |
---|
public int getSize()
public Citation getNextCitation()
public boolean hasNext()
public void add(Citation citation)
citation
- public void setComparators(java.util.Vector comparators)
comparators
- A Vector of Comparator objectspublic void sort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |