|
Revision 423M | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bridgedb.DataSourcePatterns
public final class DataSourcePatterns
Contains regular expression patterns for identifiers Can be used to guess the BioDataSource of an identifier of unknown origin.
| Method Summary | |
|---|---|
static java.util.Set<DataSource> |
getDataSourceMatches(java.lang.String id)
Look for all DataSource patterns that match a given input. |
static java.util.Map<DataSource,java.util.regex.Pattern> |
getPatterns()
|
static void |
registerPattern(DataSource key,
java.util.regex.Pattern value)
Register a regex Pattern for recognizing a DataSource. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerPattern(DataSource key,
java.util.regex.Pattern value)
key - the DataSource that may be recognized.value - the Pattern to look for.public static java.util.Set<DataSource> getDataSourceMatches(java.lang.String id)
id - to compare with registered patterns
public static java.util.Map<DataSource,java.util.regex.Pattern> getPatterns()
BioDataSource.ENSEMBL_HUMAN -> Pattern.compile("ENSG\d+")
There is not guaranteed to be a Pattern for every BioDataSource constant.
|
Generated July 29 2010 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||