|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<AbstractDocument>
tribble.archive.AbstractDocumentSet
public class AbstractDocumentSet
Asbtract generic document set.
An archive document set is a collection of zero or more archive documents. Such a set is typically the result of a query performed on an archive.
Note: This requires Java 1.5 or later.
AbstractDocumentIterator,
ArchiveReader| Field Summary | |
|---|---|
protected java.util.ArrayList<AbstractDocument> |
m_docs
Document set. |
protected int |
m_modCount
Modification serial number. |
| Constructor Summary | |
|---|---|
protected |
AbstractDocumentSet()
Constructor. |
| Method Summary | |
|---|---|
boolean |
add(AbstractDocument doc)
Add a document to this document set. |
protected boolean |
addDocument(AbstractDocument doc)
Add a document to this document set. |
AbstractDocumentIterator |
iterator()
Get an iterator for the documents in this document set. |
int |
size()
Determine the number of documents within this document set. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Field Detail |
|---|
protected java.util.ArrayList<AbstractDocument> m_docs
protected int m_modCount
| Constructor Detail |
|---|
protected AbstractDocumentSet()
| Method Detail |
|---|
public int size()
size in interface java.util.Collection<AbstractDocument>size in interface java.util.Set<AbstractDocument>size in class java.util.AbstractCollection<AbstractDocument>public AbstractDocumentIterator iterator()
iterator in interface java.lang.Iterable<AbstractDocument>iterator in interface java.util.Collection<AbstractDocument>iterator in interface java.util.Set<AbstractDocument>iterator in class java.util.AbstractCollection<AbstractDocument>
public boolean add(AbstractDocument doc)
throws java.lang.UnsupportedOperationException
Note: This method always throws UnsupportedOperationException.
add in interface java.util.Collection<AbstractDocument>add in interface java.util.Set<AbstractDocument>add in class java.util.AbstractCollection<AbstractDocument>java.lang.UnsupportedOperationExceptionprotected boolean addDocument(AbstractDocument doc)
Note: This method differs from add() in that it is meant to
be called only by the subclasses implementing an ArchiveReader.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||