public static final class DataSource.Builder extends Object
DataSource.register("X", "Affymetrix")
.mainUrl("http://www.affymetrix.com")
.type("probe")
.primary(false);
| Modifier and Type | Method and Description |
|---|---|
DataSource.Builder |
alternative(String alternative)
Allow the setting but not changing of an alternative name
|
DataSource |
asDataSource() |
DataSource.Builder |
deprecated(boolean isDeprecated) |
DataSource.Builder |
deprecatedBy(DataSource sourceToUseInstead)
Sets the DataSource which should be used instead of this deprecated one.
|
DataSource.Builder |
description(String description)
Allow the setting but not changing of a description
|
DataSource.Builder |
identifiersOrgBase(String base)
Note: Since version 2
The base must start with urn:miriam:.
|
DataSource.Builder |
idExample(String idExample)
Note: Unlike most builder methods this one does allow the idExample to be change even if already set.
|
DataSource.Builder |
mainUrl(String mainUrl)
Note: Since version 2 this method no longer allows changing a mainUrl once set.
|
DataSource.Builder |
organism(Object organism)
Since version 2 This method no longer allows you to change the Organism of a DataSource once set.
|
DataSource.Builder |
primary(boolean isPrimary)
Note: Unlike most builder methods this one does allow the idPrimary to be change even if already set.
|
DataSource.Builder |
type(String type)
Since version 2 This method no longer allow changing the type of a DataSource once set.
|
DataSource.Builder |
urlPattern(String urlPattern) |
DataSource.Builder |
urnBase(String base)
This adds a miriam base to the DataSource.
|
public DataSource asDataSource()
public DataSource.Builder urlPattern(String urlPattern)
urlPattern - is a template for generating valid URL's for identifiers.
The pattern should contain the substring "$ID", which will be replaced by the actual identifier.
Since version 2.0.0 it is no longer allowed to change the urlPattern once set.public DataSource.Builder mainUrl(String mainUrl)
mainUrl - url of homepageIllegalArgumentException - is a none null mainUrl is changed to a different value.public DataSource.Builder idExample(String idExample)
idExample - an example id from this systempublic DataSource.Builder primary(boolean isPrimary)
isPrimary - secondary id's such as EC numbers, Gene Ontology or vendor-specific systems occur in data or linkouts,
but their use in pathways is discouragedpublic DataSource.Builder deprecated(boolean isDeprecated)
isDeprecated - a boolean indicating this DataSource should no longer be usedpublic DataSource.Builder deprecatedBy(DataSource sourceToUseInstead)
isDeprecated to true.sourceToUseInstead - the DataSource that should be used instead of this
deprecated onepublic DataSource.Builder type(String type)
type - the type of datasource, for example "protein", "gene", "metabolite"public DataSource.Builder organism(Object organism)
organism - organism for which this system code is suitable, or null for any / not applicablepublic DataSource.Builder urnBase(String base)
base - for urn generation, for example "urn:miriam:uniprot"public DataSource.Builder identifiersOrgBase(String base)
base - for identifiersOrg generation, for example "http://www.identifiers.org/uniprot"
It will also accept an identifiersOrg Pattern such as "http://www.identifiers.org/uniprot/$id"public DataSource.Builder alternative(String alternative)
alternative - public DataSource.Builder description(String description)
alternative - Copyright © 2006–2021 BridgeDb project. All rights reserved.