edu.stanford.nlp.dbm
Class USPDI
java.lang.Object
|
+--java.util.AbstractCollection
|
+--java.util.AbstractList
|
+--edu.stanford.nlp.dbm.AbstractDataCollection
|
+--edu.stanford.nlp.dbm.FileDataCollection
|
+--edu.stanford.nlp.dbm.USPDI
- All Implemented Interfaces:
- Collection, DataCollection, List
- public class USPDI
- extends FileDataCollection
A DataCollection where each Data Item is a LocusLink document about a gene.
Constructor Summary |
USPDI()
Creates an empty LocusLink document collection |
USPDI(ArrayList drugNames)
Creates a USPDI document collection given an ArrayList of drug names |
Method Summary |
Iterator |
fileIterator()
returns an iterator over documents in the document collection |
void |
populate()
same as FileDataCollection.populate, but puts a minimum length
restriction on documents that it puts in the document collection. |
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from interface java.util.List |
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
USPDI
public USPDI()
- Creates an empty LocusLink document collection
USPDI
public USPDI(ArrayList drugNames)
- Creates a USPDI document collection given an ArrayList of drug names
populate
public void populate()
- same as FileDataCollection.populate, but puts a minimum length
restriction on documents that it puts in the document collection.
- Overrides:
populate
in class FileDataCollection
fileIterator
public Iterator fileIterator()
- returns an iterator over documents in the document collection
- Specified by:
fileIterator
in class FileDataCollection
Stanford NLP Group