public class IDMappingReaderFromDelimitedReader extends Object implements IDMappingReader
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
dsValid |
protected boolean |
idMappingValid |
protected String |
regExDataSourceDelimiter |
protected String |
regExIDDelimiter |
| Constructor and Description |
|---|
IDMappingReaderFromDelimitedReader(Reader reader,
String regExDataSourceDelimiter,
String regExIDDelimiter,
boolean transitivity) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addIDMapping(Set<Xref> xrefs)
Add matched references.
|
Set<DataSource> |
getDataSources()
Get
DataSources from the file. |
Map<Xref,Set<Xref>> |
getIDMappings()
Get
Xrefs from the file. |
boolean |
getTransitivity()
Get transitivity support.
|
protected void |
readData(Reader reader)
Read data.
|
protected void |
readDataSources()
Read
DataSources from the reader. |
protected void |
readIDMappings()
Read ID mappings from the reader.
|
void |
setDataSources(List<DataSource> dataSources)
Set
DataSources. |
void |
setTransitivity(boolean transitivity)
Set transitivity support.
|
protected String regExDataSourceDelimiter
protected String regExIDDelimiter
protected boolean dsValid
protected boolean idMappingValid
public IDMappingReaderFromDelimitedReader(Reader reader, String regExDataSourceDelimiter, String regExIDDelimiter, boolean transitivity) throws IDMapperException
reader - a ReaderregExDataSourceDelimiter - regular expression of delimiter between
data sourcesregExIDDelimiter - regular expression of delimiter between IDstransitivity - transitivity supportIDMapperException - if failed to readprotected void readData(Reader reader) throws IDMapperException
reader - to read data fromIDMapperException - when file can't be readpublic void setTransitivity(boolean transitivity)
transitivity - support transitivity if true.public boolean getTransitivity()
public void setDataSources(List<DataSource> dataSources)
DataSources. This will override the data sources read from
the delimited reader.dataSources - DataSourcespublic Set<DataSource> getDataSources() throws IDMapperException
DataSources from the file.getDataSources in interface IDMappingReaderDataSources from the fileIDMapperException - if failed to read the filepublic Map<Xref,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 fileprotected void readDataSources()
throws IOException
DataSources from the reader.IOException - on failing to read fileprotected void readIDMappings()
throws IOException
IOException - on file read errorCopyright © 2006–2021 BridgeDb project. All rights reserved.