uk.ac.ebi.intact.application.editor.struts.view.interaction
Class ProteinBean

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.editor.struts.view.AbstractEditBean
        |
        +--uk.ac.ebi.intact.application.editor.struts.view.interaction.ProteinBean
All Implemented Interfaces:
java.io.Serializable

public class ProteinBean
extends AbstractEditBean
implements java.io.Serializable

Bean to store data for an Interactor (Protein).

Version:
$Id: ProteinBean.java,v 1.18 2004/03/24 11:37:26 smudali Exp $
Author:
Sugath Mudali (smudali@ebi.ac.uk)
See Also:
Serialized Form

Field Summary
static java.lang.String ERROR
          Identifier for an error bean.
 
Fields inherited from class uk.ac.ebi.intact.application.editor.struts.view.AbstractEditBean
SAVE, VIEW
 
Constructor Summary
ProteinBean(Component component)
          Instantiate an object of this class from a Component instance.
ProteinBean(Protein protein)
          Instantiate an object of this class from a Protein instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares obj with this object according to Java's equals() contract.
 java.lang.String getAc()
           
 Component getComponent(EditUserI user)
           
 java.lang.String getExpressedIn()
           
 java.lang.String getFullName()
           
 java.lang.String getOrganism()
           
 java.lang.String getRole()
           
 java.lang.String getShortLabel()
           
 java.lang.String getShortLabelLink()
           
 java.lang.String getSpAc()
           
 float getStoichiometry()
           
 void setExpressedIn(java.lang.String expressedIn)
           
 void setInteraction(Interaction interaction)
          Sets the interaction for this bean.
 void setRole(java.lang.String role)
           
 void setStoichiometry(float stoichiometry)
           
 
Methods inherited from class uk.ac.ebi.intact.application.editor.struts.view.AbstractEditBean
equals, getEditState, getLink, setEditState
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR

public static final java.lang.String ERROR
Identifier for an error bean.

See Also:
Constant Field Values
Constructor Detail

ProteinBean

public ProteinBean(Protein protein)
Instantiate an object of this class from a Protein instance.

Parameters:
protein - the Protein object.

ProteinBean

public ProteinBean(Component component)
Instantiate an object of this class from a Component instance.

Parameters:
component - the Component object.
Method Detail

getComponent

public Component getComponent(EditUserI user)
                       throws SearchException
SearchException

getAc

public java.lang.String getAc()

getShortLabel

public java.lang.String getShortLabel()

getShortLabelLink

public java.lang.String getShortLabelLink()

getSpAc

public java.lang.String getSpAc()

getFullName

public java.lang.String getFullName()

getRole

public java.lang.String getRole()

setRole

public void setRole(java.lang.String role)

getStoichiometry

public float getStoichiometry()

setStoichiometry

public void setStoichiometry(float stoichiometry)

getExpressedIn

public java.lang.String getExpressedIn()

setExpressedIn

public void setExpressedIn(java.lang.String expressedIn)

getOrganism

public java.lang.String getOrganism()

setInteraction

public void setInteraction(Interaction interaction)
Sets the interaction for this bean. This is necessary for a newly created Interaction as it doesn't exist until it is ready to persist.

Parameters:
interaction - the interaction to set.

equals

public boolean equals(java.lang.Object obj)
Compares obj with this object according to Java's equals() contract. Only returns true if the short labels for both objects match.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare.


IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk