public class EnzymeLink extends Object implements Comparable<EnzymeLink>, Commented, Viewable
Modifier and Type | Field and Description |
---|---|
static EnzymeLink |
BRENDA
Static link to the BRENDA database.
|
static EnzymeLink |
CSA
Static link to the CSA database.
|
static EnzymeLink |
ERGO
Deprecated.
the ERGO website is not working any more.
|
static EnzymeLink |
EXPASY
Static link to the ENZYME database at expasy.org.
|
static EnzymeLink |
EXPLORENZ |
static EnzymeLink |
GO
Static link to the Gene Ontology database.
|
static EnzymeLink |
KEGG
Static link to the KEGG database.
|
static EnzymeLink |
METACYC
Link to MetaCyc.
|
static EnzymeLink |
NC_IUBMB
Static link to the GM pages (NC-IUBMB).
|
static EnzymeLink |
NIST74
Static link to the NIST 74 database.
|
static EnzymeLink |
PDB
Static link to the PDB database.
|
static EnzymeLink |
UMBBD
Static link to the UM-BBD database.
|
static EnzymeLink |
UNIPATHWAY |
static EnzymeLink |
WIT
Static link to the ERGO (formerly WIT) database.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EnzymeLink link)
Used for ordering links in a collection.
|
boolean |
equals(Object o)
Checks for equality.
|
String |
getAccession() |
String |
getDataComment() |
String |
getFullUrl(String ec)
Links with the EC number as identifier need to call this method to get the correct URL.
|
String |
getListOrderCriterion()
Creates a unique name for this link.
|
String |
getName() |
EnzymeSourceConstant |
getSource() |
String |
getSpecificUrl() |
static EnzymeLink |
getStaticLink(XrefDatabaseConstant databaseConstant) |
EnzymeViewConstant |
getView() |
XrefDatabaseConstant |
getXrefDatabaseConstant() |
int |
hashCode()
Generates a hash code for this object.
|
static boolean |
isStaticLink(XrefDatabaseConstant databaseConstant)
Checks if the given link is a static link.
|
void |
setDataComment(String comment) |
String |
toString()
Provides a string representation of an
EnzymeLink . |
static EnzymeLink |
valueOf(XrefDatabaseConstant xrefDatabaseConstant,
String specificUrl,
String accession,
String name,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Returns an
EnzymeLink instance. |
static EnzymeLink |
valueOf(XrefDatabaseConstant xrefDatabaseConstant,
String specificUrl,
String accession,
String name,
EnzymeSourceConstant source,
EnzymeViewConstant view,
String dataComment)
Returns a commented
EnzymeLink instance. |
public static final EnzymeLink BRENDA
public static final EnzymeLink METACYC
public static final EnzymeLink KEGG
public static final EnzymeLink EXPASY
public static final EnzymeLink NC_IUBMB
@Deprecated public static final EnzymeLink ERGO
public static final EnzymeLink WIT
public static final EnzymeLink GO
public static final EnzymeLink NIST74
public static final EnzymeLink UMBBD
public static final EnzymeLink PDB
public static final EnzymeLink CSA
public static final EnzymeLink EXPLORENZ
public static final EnzymeLink UNIPATHWAY
public static EnzymeLink valueOf(XrefDatabaseConstant xrefDatabaseConstant, String specificUrl, String accession, String name, EnzymeSourceConstant source, EnzymeViewConstant view)
EnzymeLink
instance.xrefDatabaseConstant
- The link's xrefDatabaseConstant.specificUrl
- The link's URL.accession
- The accession of this link.name
- The name of this link.EnzymeLink
instance.NullPointerException
- if xrefDatabaseConstant
is null
.IllegalArgumentException
- if the arguments are not sufficient to create a link.public static EnzymeLink valueOf(XrefDatabaseConstant xrefDatabaseConstant, String specificUrl, String accession, String name, EnzymeSourceConstant source, EnzymeViewConstant view, String dataComment)
EnzymeLink
instance.xrefDatabaseConstant
- specificUrl
- accession
- name
- source
- view
- dataComment
- public static boolean isStaticLink(XrefDatabaseConstant databaseConstant)
databaseConstant
- The database constant to be checked.true
if the link is a static link.NullPointerException
- if link
is null
.public static EnzymeLink getStaticLink(XrefDatabaseConstant databaseConstant)
public int compareTo(EnzymeLink link)
compareTo
in interface Comparable<EnzymeLink>
link
- The object to be compared to this.NullPointerException
- if o
is null
.public boolean equals(Object o)
public int hashCode()
public String toString()
EnzymeLink
.public String getListOrderCriterion()
public String getFullUrl(String ec)
ec
- The EC number.NullPointerException
- if ec
is null
.public XrefDatabaseConstant getXrefDatabaseConstant()
public String getSpecificUrl()
public String getAccession()
public String getName()
public EnzymeViewConstant getView()
public EnzymeSourceConstant getSource()
public String getDataComment()
getDataComment
in interface Commented
public void setDataComment(String comment)
setDataComment
in interface Commented
Copyright © 2014 EMBL-EBI. All rights reserved.