Commit 5b9d4eaf authored by David Hoksza's avatar David Hoksza
Browse files

no message

parents 429d137d d5f003d0
Pipeline #3605 failed with stage
in 2 minutes and 55 seconds
......@@ -97,6 +97,14 @@ public enum MiriamType {
new String[] { "urn:miriam:cogs" }, //
new Class<?>[] { Reaction.class }, "MIR:00000296"), //
/**
* Digital Object Identifier: http://www.doi.org/.
*/
DOI("Digital Object Identifier", //
"http://www.doi.org/", //
new String[] { "urn:miriam:doi" }, //
new Class<?>[] { Reaction.class }, "MIR:00000019"), //
/**
* Drugbank database: http://www.drugbank.ca/.
*/
......@@ -105,7 +113,7 @@ public enum MiriamType {
new String[] { "urn:miriam:drugbank" }, //
new Class<?>[] { Drug.class }, "MIR:00000102"), //
/**
* Drugbank tagrets: http://www.drugbank.ca/targets.
* Drugbank targets: http://www.drugbank.ca/targets.
*/
DRUGBANK_TARGET_V4("DrugBank Target v4", //
"http://www.drugbank.ca/targets", //
......@@ -490,8 +498,8 @@ public enum MiriamType {
private List<Class<? extends BioEntity>> validClass = new ArrayList<>();
/**
* When class from this list is marked as "require at least one annotation"
* then annotation of this type is valid.
* When class from this list is marked as "require at least one annotation" then
* annotation of this type is valid.
*/
private List<Class<? extends BioEntity>> requiredClass = new ArrayList<>();
......@@ -530,7 +538,8 @@ public enum MiriamType {
* @param requiredClasses
* {@link #requiredClasses}
*/
MiriamType(String commonName, String dbHomePage, String[] uris, Class<?>[] classes, String registryIdentifier, Class<?>[] requiredClasses) {
MiriamType(String commonName, String dbHomePage, String[] uris, Class<?>[] classes, String registryIdentifier,
Class<?>[] requiredClasses) {
this.commonName = commonName;
this.dbHomepage = dbHomePage;
for (String string : uris) {
......@@ -652,8 +661,8 @@ public enum MiriamType {
* identifier in the format NAME:IDENTIFIER. Where NAME is the name
* from {@link MiriamType#commonName} and IDENTIFIER is reasource
* identifier.
* @return {@link MiriamData} representing generalIdentifier, when identifier
* is invalid InvalidArgumentException is thrown
* @return {@link MiriamData} representing generalIdentifier, when identifier is
* invalid InvalidArgumentException is thrown
*/
public static MiriamData getMiriamDataFromIdentifier(String generalIdentifier) {
int index = generalIdentifier.indexOf(":");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment