public class IDMapperText extends IDMapperFile
cap, reader| Constructor and Description |
|---|
IDMapperText(URL url)
Constructor from the
URL of a tab-delimited text file. |
IDMapperText(URL url,
char[] dataSourceDelimiters)
Transitivity is unsupported.
|
IDMapperText(URL url,
char[] dataSourceDelimiters,
char[] idDelimiters)
Transitivity is unsupported.
|
IDMapperText(URL url,
char[] dataSourceDelimiters,
char[] idDelimiters,
boolean transitivity)
Constructor from the
URL of a tab-delimited text file,
delimiters to separate between different data sources and IDs and
transitivity support. |
| Modifier and Type | Method and Description |
|---|---|
Set<Xref> |
freeSearch(String text,
int limit)
Free search is not supported for delimiter-text file.
|
char[] |
getDataSourceDelimiters() |
char[] |
getIDDelimiters() |
boolean |
getTransitivity()
Get transitivity support.
|
URL |
getURL()
Get
URL of the file. |
void |
setDataSourceDelimiters(char[] dataSourceDelimiters)
Set delimiters between data sources.
|
void |
setIDDelimiters(char[] idDelimiters)
Set delimiters between data IDs.
|
void |
setTransitivity(boolean transitivity)
Set transitivity support.
|
String |
toString() |
close, getCapabilities, getIDMappingReader, isConnected, mapID, mapID, xrefExistspublic IDMapperText(URL url) throws IDMapperException
URL of a tab-delimited text file.url - URL of the fileIDMapperException - if failed to read filepublic IDMapperText(URL url, char[] dataSourceDelimiters) throws IDMapperException
url - url URL of the filedataSourceDelimiters - delimiters between data sourcesIDMapperException - if failed to read filepublic IDMapperText(URL url, char[] dataSourceDelimiters, char[] idDelimiters) throws IDMapperException
url - url URL of the filedataSourceDelimiters - delimiters between data sourcesidDelimiters - delimiters between IDsIDMapperException - if failed to read filepublic IDMapperText(URL url, char[] dataSourceDelimiters, char[] idDelimiters, boolean transitivity) throws IDMapperException
URL of a tab-delimited text file,
delimiters to separate between different data sources and IDs and
transitivity support.url - url URL of the filedataSourceDelimiters - delimiters between data sourcesidDelimiters - delimiters between IDstransitivity - support transitivity if trueIDMapperException - if failed to read filepublic Set<Xref> freeSearch(String text, int limit) throws IDMapperException
text - ignoredlimit - ignoredIDMapperException - will not be thrownpublic void setTransitivity(boolean transitivity)
transitivity - support transitivity if true.public boolean getTransitivity()
public char[] getDataSourceDelimiters()
public char[] getIDDelimiters()
public void setDataSourceDelimiters(char[] dataSourceDelimiters)
dataSourceDelimiters - delimiters between data sourcespublic void setIDDelimiters(char[] idDelimiters)
idDelimiters - delimiters between data IDsCopyright © 2006–2021 BridgeDb project. All rights reserved.