|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ooc.LinkedTagInstance softparsmap.AbstractSequenceData softparsmap.SequenceDataXml
This class is used by DataSourceXmlNcbiTaxonomy to extract sequence data from one file in XML-format. The format is flexible within limits, see the def.xml file for more information.
Constructor Summary | |
SequenceDataXml()
|
Method Summary | |
int |
getGiNumber()
Returns the GI number. |
int |
getIdNumber()
Returns the identity number for this sequence. |
int |
getSequenceLength()
Returns the length of the sequence. |
java.lang.String |
getSpeciesName()
Returns the species name that harbor this sequence. |
boolean |
isCompleteSequence()
Returns true if the sequence is complete, otherwise false. |
boolean |
moveNextSequence()
Move to next sequence in file. |
FilePointerPart |
newFilePointerPartCurrent()
Returns a new FilePointerPart on current position in
the file. |
void |
parseSequence(java.io.RandomAccessFile raf,
FilePointerPart fpp)
Parse in a sequence given a the file and pointer. |
void |
setDatabaseFile(java.io.RandomAccessFile raf)
Sets the file that contains the sequences. |
Methods inherited from class softparsmap.AbstractSequenceData |
getPropertyFile |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SequenceDataXml()
Method Detail |
public void setDatabaseFile(java.io.RandomAccessFile raf)
AbstractSequenceData
setDatabaseFile
in class AbstractSequenceData
raf
- is the file containing the sequencespublic boolean moveNextSequence()
AbstractSequenceData
moveNextSequence
in class AbstractSequenceData
public FilePointerPart newFilePointerPartCurrent()
AbstractSequenceData
FilePointerPart
on current position in
the file.
newFilePointerPartCurrent
in class AbstractSequenceData
FilePointerPart
on current position in filepublic void parseSequence(java.io.RandomAccessFile raf, FilePointerPart fpp)
AbstractSequenceData
parseSequence
in class AbstractSequenceData
raf
- is the file containing all the sequencesfpp
- is the file pointerpublic int getIdNumber()
SequenceData
public boolean isCompleteSequence()
SequenceData
public int getGiNumber()
SequenceData
public int getSequenceLength()
SequenceData
public java.lang.String getSpeciesName()
SequenceData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |