|
Revision 423M | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bridgedb.file.IDMappingReaderFromDelimitedReader
public class IDMappingReaderFromDelimitedReader
Class for reading ID mapping data from delimited reader.
| Field Summary | |
|---|---|
protected boolean |
dsValid
|
protected boolean |
idMappingValid
|
protected java.lang.String |
regExDataSourceDelimiter
|
protected java.lang.String |
regExIDDelimiter
|
| Constructor Summary | |
|---|---|
IDMappingReaderFromDelimitedReader(java.io.Reader reader,
java.lang.String regExDataSourceDelimiter,
java.lang.String regExIDDelimiter,
boolean transitivity)
|
|
| Method Summary | |
|---|---|
protected void |
addIDMapping(java.util.Set<Xref> xrefs)
Add matched references. |
java.util.Set<DataSource> |
getDataSources()
Get DataSources from the file. |
java.util.Map<Xref,java.util.Set<Xref>> |
getIDMappings()
Get Xrefs from the file. |
boolean |
getTransitivity()
Get transitivity support. |
protected void |
readData(java.io.Reader reader)
Read data. |
protected void |
readDataSources()
Read DataSources from the reader. |
protected void |
readIDMappings()
Read ID mappings from the reader. |
void |
setDataSources(java.util.List<DataSource> dataSources)
Set DataSources. |
void |
setTransitivity(boolean transitivity)
Set transitivity support. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String regExDataSourceDelimiter
protected java.lang.String regExIDDelimiter
protected boolean dsValid
protected boolean idMappingValid
| Constructor Detail |
|---|
public IDMappingReaderFromDelimitedReader(java.io.Reader reader,
java.lang.String regExDataSourceDelimiter,
java.lang.String regExIDDelimiter,
boolean transitivity)
throws IDMapperException
reader - a ReaderregExDataSourceDelimiter - regular expression of delimiter between
data sourcesregExIDDelimiter - regular expression of delimiter between IDstransitivity - transitivity support
IDMapperException - if failed to read| Method Detail |
|---|
protected void readData(java.io.Reader reader)
throws IDMapperException
reader - to read data from
IDMapperException - when file can't be readpublic void setTransitivity(boolean transitivity)
transitivity - support transitivity if true.public boolean getTransitivity()
public void setDataSources(java.util.List<DataSource> dataSources)
DataSources. This will override the data sources read from
the delimited reader.
dataSources - DataSources
public java.util.Set<DataSource> getDataSources()
throws IDMapperException
DataSources from the file.
getDataSources in interface IDMappingReaderDataSources from the file
IDMapperException - if failed to read the file
public java.util.Map<Xref,java.util.Set<Xref>> getIDMappings()
throws IDMapperException
Xrefs from the file.
getIDMappings in interface IDMappingReaderXref to the Set of all its matched
Xref.
IDMapperException - if failed to read the file
protected void readDataSources()
throws java.io.IOException
DataSources from the reader.
java.io.IOException - on failing to read file
protected void readIDMappings()
throws java.io.IOException
java.io.IOException - on file read errorprotected void addIDMapping(java.util.Set<Xref> xrefs)
xrefs - matched references
|
Generated July 29 2010 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||