uk.ac.ebi.intenz.domain.enzyme
Class EnzymeComment

java.lang.Object
  extended by uk.ac.ebi.intenz.domain.enzyme.EnzymeComment
All Implemented Interfaces:
Viewable

public class EnzymeComment
extends Object
implements Viewable

This class represents a comment of an enzyme entry.

Instances of this class are immutable.

Version:
$Revision: 1.2 $ $Date: 2008/01/28 12:33:00 $
Author:
Michael Darsow

Constructor Summary
EnzymeComment(String commentText, EnzymeSourceConstant source, EnzymeViewConstant view)
          Returns a EnzymeComment instance.
 
Method Summary
 boolean equals(Object o)
          Standard equals method.
 String getCommentText()
           
 EnzymeSourceConstant getSource()
           
 EnzymeViewConstant getView()
           
 int hashCode()
          Returns the hash code of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnzymeComment

public EnzymeComment(String commentText,
                     EnzymeSourceConstant source,
                     EnzymeViewConstant view)
Returns a EnzymeComment instance.

Parameters:
commentText - The actual comment.
source - The comment's source.
view - The view(s) where this comment will be displayed.
Throws:
NullPointerException - if commentText or source are null.
IllegalArgumentException - if commentText is empty.
Method Detail

equals

public boolean equals(Object o)
Standard equals method.

Overrides:
equals in class Object
Parameters:
o - Object to be compared to this one.
Returns:
true if the objects are equal.

hashCode

public int hashCode()
Returns the hash code of this object.

Overrides:
hashCode in class Object
Returns:
the hash code of this object.

getCommentText

public String getCommentText()

getSource

public EnzymeSourceConstant getSource()

getView

public EnzymeViewConstant getView()
Specified by:
getView in interface Viewable


Copyright © 2013 EMBL-EBI. All Rights Reserved.