|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ebi.intenz.domain.enzyme.EnzymeLink
public class EnzymeLink
An enzyme link is used to store cross-reference information.
Most of the links use a static URL which differs only in the EC number used to identify the enzyme. These links can be obtained by accessing the class constants.
Field Summary | |
---|---|
static EnzymeLink |
BRENDA
Static link to the BRENDA database. |
static EnzymeLink |
CSA
Static link to the CSA database. |
static EnzymeLink |
ERGO
Static link to the ERGO database. |
static EnzymeLink |
EXPASY
Static link to the ENZYME database at expasy.org. |
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 |
WIT
Static link to the ERGO (formerly WIT) database. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
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
Method Detail |
---|
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)
equals
in class Object
o
- The object to be compared to this.
true
if o
is equal this object.public int hashCode()
hashCode
in class Object
public String toString()
EnzymeLink
.
toString
in class Object
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()
getView
in interface Viewable
public EnzymeSourceConstant getSource()
public String getDataComment()
getDataComment
in interface Commented
public void setDataComment(String comment)
setDataComment
in interface Commented
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |