|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.ebi.intenz.domain.enzyme.EnzymeEntry
public class EnzymeEntry
This class stores the information of an IntEnz enzyme.
Such an enzyme includes information from three different sources:
| Constructor Summary | |
|---|---|
EnzymeEntry()
The default source is INTENZ. |
|
| Method Summary | |
|---|---|
void |
addCofactor(Cofactor cofactor)
Deprecated. use addCofactor(Object) instead |
void |
addCofactor(Object cofactor)
Adds a cofactor to the list of cofactors. |
void |
addCommonName(EnzymeName commonName)
Adds a common name to the list of common names. |
void |
addEnzymaticReaction(uk.ac.ebi.rhea.domain.Reaction reaction,
String view,
boolean iubmb)
Adds a reaction to the list of alternative reactions. |
void |
addLink(EnzymeLink link)
Adds a link to the list of additional links. |
void |
addReaction(uk.ac.ebi.rhea.domain.Reaction reaction)
Deprecated. use addEnzymaticReaction instead |
void |
addReference(Reference reference)
Adds a reference to the list of references. |
void |
addSynonym(EnzymeName synonym)
Adds a synonsm to the list of synonyms. |
boolean |
equals(Object o)
Standard equals method. |
SortedSet<EnzymeLink> |
getCasNumbers()
CAS numbers for IntEnz and IUBMB views. |
String |
getClassName()
|
Set<Object> |
getCofactors()
|
List<EnzymeComment> |
getComments()
|
List<EnzymeComment> |
getComments(EnzymeViewConstant view)
Deprecated. use getComments(String) instead |
List<EnzymeComment> |
getComments(String view)
|
List<EnzymeComment> |
getComments(View theView)
|
EnzymeName |
getCommonName()
|
EnzymeName |
getCommonName(EnzymeViewConstant view)
Returns the first common name which view value matches the
parameter's view value. |
List<EnzymeName> |
getCommonNames()
|
EnzymeCommissionNumber |
getEc()
|
EnzymaticReactions |
getEnzymaticReactions()
|
EnzymaticReactions |
getEnzymaticReactions(View view)
Gets a collection of enzymatic reactions for the given view. |
HistoryGraph |
getHistory()
|
Long |
getId()
|
SortedSet<EnzymeLink> |
getLinks()
|
SortedSet<EnzymeLink> |
getLinks(EnzymeViewConstant view)
Deprecated. use getLinks(String) instead |
SortedSet<EnzymeLink> |
getLinks(String view)
|
SortedSet<EnzymeLink> |
getLinks(View theView)
Return the links to entries in external databases. |
String |
getNote()
|
List<uk.ac.ebi.rhea.domain.Reaction> |
getReactions()
Deprecated. use getEnzymaticReactions instead |
List<uk.ac.ebi.rhea.domain.Reaction> |
getReactions(EnzymeViewConstant view)
Deprecated. use getReactions(View) or getReactions(String) instead. |
List<uk.ac.ebi.rhea.domain.Reaction> |
getReactions(String view)
|
List<uk.ac.ebi.rhea.domain.Reaction> |
getReactions(View view)
|
List<Reference> |
getReferences()
|
EnzymeSourceConstant |
getSource()
|
Status |
getStatus()
|
String |
getSubclassName()
|
String |
getSubSubclassName()
|
List<EnzymeName> |
getSynonyms()
|
List<EnzymeName> |
getSynonyms(EnzymeViewConstant view)
Deprecated. use getSynonyms(String) or getSynonyms(View) instead. |
List<EnzymeName> |
getSynonyms(String view)
|
List<EnzymeName> |
getSynonyms(View theView)
|
EnzymeName |
getSystematicName()
|
SortedSet<EnzymeLink> |
getUniProtLinks()
|
int |
hashCode()
Returns the hash code of this object. |
boolean |
hasNames()
|
boolean |
isActive()
|
boolean |
isGhost()
|
void |
removeCofactor(Cofactor cofactor)
Deprecated. use removeCofactor(Object) instead |
void |
removeCofactor(Object cofactor)
Removes a cofactor from the list of cofactors. |
void |
removeCofactor(String cofactorString)
Deprecated. use removeCofactor(Object) instead |
void |
removeEnzymaticReaction(uk.ac.ebi.rhea.domain.Reaction reaction)
|
void |
removeLink(EnzymeLink link)
Removes a link from the list of additional links. |
void |
removeReaction(String equation)
Deprecated. use removeEnzymaticReaction instead |
void |
removeReference(Reference reference)
Removes a reference from the list of references. |
void |
removeSynonym(String synonym)
Removes a synonsm from the list of synonyms. |
void |
setActive(boolean active)
|
void |
setClassName(String className)
Sets the class name. |
void |
setCofactors(Set<Object> cofactors)
|
void |
setComments(List<EnzymeComment> comments)
Sets the list of comments. |
void |
setCommonNames(List<EnzymeName> commonNames)
Sets the list of common names. |
void |
setEc(EnzymeCommissionNumber ec)
Sets the EC number. |
void |
setEnzymaticReactions(EnzymaticReactions enzymaticReactions)
|
void |
setGhost(boolean ghost)
|
void |
setHistory(HistoryGraph historyGraph)
Sets the history graph. |
void |
setId(Long id)
|
void |
setLinks(SortedSet<EnzymeLink> links)
Sets the list of links. |
void |
setNote(String note)
Sets the note. |
void |
setReactions(List<uk.ac.ebi.rhea.domain.Reaction> reactions)
Sets the list of reactions. |
void |
setReferences(List<Reference> references)
Sets the list of refernces. |
void |
setSource(EnzymeSourceConstant source)
Sets the enzyme's source. |
void |
setStatus(Status status)
Sets the enzyme's status. |
void |
setSubclassName(String subclassName)
Sets the subclass name. |
void |
setSubSubclassName(String subSubclassName)
Sets the sub-subclass name. |
void |
setSynonyms(List<EnzymeName> synonyms)
Sets the list of synonyms. |
void |
setSystematicName(EnzymeName systematicName)
Sets the systematic name of the enzyme. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnzymeEntry()
INTENZ.
Every new instance is active by default.
| Method Detail |
|---|
public void addReaction(uk.ac.ebi.rhea.domain.Reaction reaction)
reaction - The reaction to be added.
NullPointerException - if reaction is null.
public void addEnzymaticReaction(uk.ac.ebi.rhea.domain.Reaction reaction,
String view,
boolean iubmb)
reaction - view - iubmb - the IUBMB flag.public void addCofactor(Cofactor cofactor)
addCofactor(Object) instead
cofactor - The cofactor to be added.
NullPointerException - if cofactor is null.public void addCofactor(Object cofactor)
cofactor - A Cofactor or OperatorSet object.public void removeReaction(String equation)
equation - The reaction to be removed.
NullPointerException - if equation is null.public void removeEnzymaticReaction(uk.ac.ebi.rhea.domain.Reaction reaction)
public void removeCofactor(String cofactorString)
cofactorString - The cofactor string to be removed.
NullPointerException - if cofactorString is null.public void removeCofactor(Cofactor cofactor)
removeCofactor(Object) instead
cofactor - public void removeCofactor(Object cofactor)
cofactor - public void addSynonym(EnzymeName synonym)
synonym - The synonym to be added.
NullPointerException - if synonym is null.public void removeSynonym(String synonym)
synonym - The synonym to be removed.
NullPointerException - if synonym is null.public void addLink(EnzymeLink link)
link - The link to be added.
NullPointerException - if link is null.public void removeLink(EnzymeLink link)
link - The link to be removed.
NullPointerException - if link is null.public void addReference(Reference reference)
reference - The reference to be added.
NullPointerException - if reference is null.public void removeReference(Reference reference)
reference - The reference to be removed.
NullPointerException - if reference is null.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 Long getId()
public void setId(Long id)
public EnzymeCommissionNumber getEc()
public void setEc(EnzymeCommissionNumber ec)
ec - The new EC number.
NullPointerException - if ec is null.public String getClassName()
public void setClassName(String className)
className - The class name.
NullPointerException - if className is null
IllegalArgumentException - if className is empty.public String getSubclassName()
public void setSubclassName(String subclassName)
subclassName - The subclass name.
NullPointerException - if subclassName is null
IllegalArgumentException - if subclassName is empty.public String getSubSubclassName()
public void setSubSubclassName(String subSubclassName)
subSubclassName - The sub-subclass name.
NullPointerException - if subSubclassName is null.public List<EnzymeName> getCommonNames()
public EnzymeName getCommonName()
public EnzymeName getCommonName(EnzymeViewConstant view)
view value matches the
parameter's view value.
view - web view (defaults to INTENZ)
IllegalArgumentException - if view is not either
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.INTENZ,
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.IUBMB or
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.SIB .
public void setCommonNames(List<EnzymeName> commonNames)
throws EnzymeNameException
commonNames - List of common names.
NullPointerException - if commonNames is null.
EnzymeNameException - if the list of common names does contain less than 1 or more than 2 common names or
if the type of a name in the list is not defined as EnzymeNameTypeConstant.COMMON_NAME.
public void addCommonName(EnzymeName commonName)
throws EnzymeNameException
uk.ac.ebi.intenz.webapp.exceptions.EnzymeNameException is thrown.
Empty strings will be omitted.
commonName - The common name to be added.
EnzymeNameException - if the list of common names already contains two elements.public EnzymeName getSystematicName()
public void setSystematicName(EnzymeName systematicName)
systematicName - The systematic name.
NullPointerException - if systematicName is null.public List<uk.ac.ebi.rhea.domain.Reaction> getReactions()
public List<uk.ac.ebi.rhea.domain.Reaction> getReactions(EnzymeViewConstant view)
getReactions(View) or getReactions(String) instead.
view values match the parameter's view value.
ArrayList of reactions.
NullPointerException - if view is null.
IllegalArgumentException - if view is not either
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.INTENZ,
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.IUBMB or
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.SIB .public List<uk.ac.ebi.rhea.domain.Reaction> getReactions(String view)
public List<uk.ac.ebi.rhea.domain.Reaction> getReactions(View view)
public EnzymaticReactions getEnzymaticReactions(View view)
view - a web view.
EnzymaticReactions object containing only reactions in
the given view.
public void setReactions(List<uk.ac.ebi.rhea.domain.Reaction> reactions)
throws EnzymeReactionException
reactions - The list of reactions.
EnzymeReactionException - if the list of reactions is empty.public EnzymaticReactions getEnzymaticReactions()
public void setEnzymaticReactions(EnzymaticReactions enzymaticReactions)
public Set<Object> getCofactors()
public void setCofactors(Set<Object> cofactors)
public List<EnzymeName> getSynonyms()
public List<EnzymeName> getSynonyms(String view)
public List<EnzymeName> getSynonyms(View theView)
public List<EnzymeName> getSynonyms(EnzymeViewConstant view)
getSynonyms(String) or getSynonyms(View) instead.
view values match the parameter's view value.
ArrayList of synonyms.
NullPointerException - if view is null.
IllegalArgumentException - if view is not either
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.INTENZ,
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.IUBMB or
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.SIB .public void setSynonyms(List<EnzymeName> synonyms)
synonyms - The list of synonyms.
NullPointerException - if synonyms is null.public List<EnzymeComment> getComments()
public List<EnzymeComment> getComments(String view)
public List<EnzymeComment> getComments(View theView)
public List<EnzymeComment> getComments(EnzymeViewConstant view)
getComments(String) instead
view values match the parameter's view value.
ArrayList of comments.
NullPointerException - if view is null.
IllegalArgumentException - if view is not either
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.INTENZ,
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.IUBMB or
uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant.SIB .public void setComments(List<EnzymeComment> comments)
comments - The list of comments.
NullPointerException - if comments is null.public SortedSet<EnzymeLink> getLinks()
public SortedSet<EnzymeLink> getLinks(String view)
public SortedSet<EnzymeLink> getCasNumbers()
public SortedSet<EnzymeLink> getUniProtLinks()
public SortedSet<EnzymeLink> getLinks(View theView)
theView -
public SortedSet<EnzymeLink> getLinks(EnzymeViewConstant view)
getLinks(String) instead
view -
public void setLinks(SortedSet<EnzymeLink> links)
links - The list of links.
NullPointerException - if links is null.public List<Reference> getReferences()
public void setReferences(List<Reference> references)
throws EnzymeReferenceException
references - The list of references.
EnzymeReferenceException - if references is null.public String getNote()
public void setNote(String note)
note - the note.
NullPointerException - if note is null.public HistoryGraph getHistory()
public void setHistory(HistoryGraph historyGraph)
historyGraph - the history graph.
NullPointerException - if historyGraph is null.public Status getStatus()
public void setStatus(Status status)
status - The enzyme's status.
NullPointerException - if status is null.public EnzymeSourceConstant getSource()
public void setSource(EnzymeSourceConstant source)
source - The enzyme's source.
NullPointerException - if source is null.public boolean isActive()
public void setActive(boolean active)
public boolean isGhost()
public void setGhost(boolean ghost)
public boolean hasNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||