|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector org.strbio.util.db.Data
public class Data
This is a very simple database, containing a collection of Info elements. It could be rewritten to use a real DB.
Version 1.11, 1/3/03 - fixed bug in IE.hasMoreElements Version 1.1, 12/6/99 - added some clear functions, fixed ordering of subclass searches Version 1.0, 7/21/99 - original version.
Nested Class Summary | |
---|---|
static class |
Data.InfoEnumeration
An enumeration that strips out all info of a certain type. |
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
Data()
|
Method Summary | |
---|---|
void |
addInfo(Info x)
Add some info to this set. |
void |
clear()
clear all info. |
int |
clearInfo(java.lang.Class x)
Removes all info of a certain type. |
java.util.Enumeration |
getAllInfo()
Return an enumeration of all the info. |
Info |
getFirstInfo(java.lang.Class x)
Get first info of a certain type, or null if there is none. |
java.util.Enumeration |
getInfo(java.lang.Class x)
Return an enumeration of all info of a certain type. |
boolean |
hasInfo(java.lang.Class x)
Does the data include any info of a certain type? |
int |
n()
How many elements of data are there? |
void |
processYAPF(java.lang.String buffer)
process a line of info from a YAPF file. |
void |
readYAPF(java.io.BufferedReader infile)
read info from a YAPF file. |
void |
readYAPF(java.lang.String fileName)
read info from a YAPF file. |
void |
writeYAPF(Printf outfile)
write all info to a Printf. |
void |
writeYAPF(java.lang.String fileName)
write all info to a file. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public Data()
Method Detail |
---|
public int n()
public java.util.Enumeration getAllInfo()
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.Vector
public boolean hasInfo(java.lang.Class x)
public java.util.Enumeration getInfo(java.lang.Class x)
public int clearInfo(java.lang.Class x)
public Info getFirstInfo(java.lang.Class x)
public void addInfo(Info x)
public void writeYAPF(Printf outfile) throws java.io.IOException
java.io.IOException
public void writeYAPF(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public void processYAPF(java.lang.String buffer)
public void readYAPF(java.io.BufferedReader infile) throws java.io.IOException
java.io.IOException
public void readYAPF(java.lang.String fileName) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |