|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.domain.enzyme.Cofactor
public class Cofactor
Cofactors are compounds participating in the reaction and are represented by this class.
At the moment this class stores the cofactor string from ENZYME only. In future this string should be broken down into its components, i.e. compounds and the binary operators (AND/OR) between them. Instances of this class are immutable.
| Nested Class Summary | |
|---|---|
static class |
Cofactor.Operators
|
| Constructor Summary | |
|---|---|
Cofactor(String cofactorValue,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Deprecated. use the valueOf method instead to call the private constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Standard equals method. |
String |
getCofactorValue()
Deprecated. use getCompound().getName() or toString() instead |
uk.ac.ebi.rhea.domain.Compound |
getCompound()
|
EnzymeSourceConstant |
getSource()
|
EnzymeViewConstant |
getView()
|
int |
hashCode()
Returns the hash code of this object. |
String |
toString()
|
static Cofactor |
valueOf(uk.ac.ebi.rhea.domain.Compound compound,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Builds a cofactor from the passed parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cofactor(String cofactorValue,
EnzymeSourceConstant source,
EnzymeViewConstant view)
Cofactor instance defined by cofactorValue.
cofactorValue - The string representation of the cofactor(s).
NullPointerException - if cofactorValue is null.
IllegalArgumentException - if cofactorValue is empty.| Method Detail |
|---|
public static Cofactor valueOf(uk.ac.ebi.rhea.domain.Compound compound,
EnzymeSourceConstant source,
EnzymeViewConstant view)
compound - source - view -
public boolean equals(Object o)
equals in class Objecto - Object to be compared to this one.
true if the objects are equal.public int hashCode()
hashCode in class Objectpublic String getCofactorValue()
getCompound().getName() or toString() instead
public EnzymeSourceConstant getSource()
public EnzymeViewConstant getView()
getView in interface Viewablepublic uk.ac.ebi.rhea.domain.Compound getCompound()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||