uk.ac.ebi.intact.application.intSeq.struts.view.utils
Class SimilarityResultBean

java.lang.Object
  |
  +--uk.ac.ebi.intact.application.intSeq.struts.view.utils.SimilarityResultBean

public class SimilarityResultBean
extends java.lang.Object

Bean to display a result object from the aligment. This bean is used by the SimilarityDecorator to decorate the data before its display in the similaritySearchResults.jsp page

Version:
: $Id: SimilarityResultBean.java,v 1.1 2003/04/28 13:49:40 shuet Exp $
Author:
shuet (shuet@ebi.ac.uk)

Constructor Summary
SimilarityResultBean()
          constructor by default.
SimilarityResultBean(java.lang.String ac, java.lang.String perc, int begQue, int endQue, int begSub, int endSub)
          constructs an instance of this class for a given object, composed with 6 items.
 
Method Summary
 java.lang.String getAc()
          returns the accession number
 java.lang.String getPercentage()
          returns the percentage identity
 int getQueryFragmentBegin()
          returns the start of the query fragment
 int getQueryFragmentEnd()
          returns the end of the query fragment.
 int getSubjectFragmentBegin()
          returns the start of the subject fragment
 int getSubjectFragmentEnd()
          returns the end of the subject fragment.
 void setAc(java.lang.String identifier)
          Set the ac column.
 void setPercentage(java.lang.String perc)
          Set the percentage identity column.
 void setQueryFragmentBegin(int begin)
          Set the start of the query fragment.
 void setQueryFragmentEnd(int end)
          Set the end of the query fragment.
 void setSubjectFragmentBegin(int begin)
          Set the start of the subject fragment.
 void setSubjectFragmentEnd(int end)
          Set the end of the subject fragment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimilarityResultBean

public SimilarityResultBean()
constructor by default.


SimilarityResultBean

public SimilarityResultBean(java.lang.String ac,
                            java.lang.String perc,
                            int begQue,
                            int endQue,
                            int begSub,
                            int endSub)
constructs an instance of this class for a given object, composed with 6 items.

Parameters:
ac - the accession number
perc - the percentage identity
begQue - the start of the query fragment
endQue - the end of the query fragment
begSub - the start of the subject fragment
endSub - the end of the subject fragment
Method Detail

setAc

public void setAc(java.lang.String identifier)
Set the ac column.

Parameters:
identifier - represents the accession number

getAc

public java.lang.String getAc()
returns the accession number

Returns:
String

setPercentage

public void setPercentage(java.lang.String perc)
Set the percentage identity column.

Parameters:
perc - represents the percentage identity

getPercentage

public java.lang.String getPercentage()
returns the percentage identity

Returns:
String

setQueryFragmentBegin

public void setQueryFragmentBegin(int begin)
Set the start of the query fragment.

Parameters:
begin -

getQueryFragmentBegin

public int getQueryFragmentBegin()
returns the start of the query fragment

Returns:
int

setQueryFragmentEnd

public void setQueryFragmentEnd(int end)
Set the end of the query fragment.

Parameters:
end -

getQueryFragmentEnd

public int getQueryFragmentEnd()
returns the end of the query fragment.

Returns:
int

setSubjectFragmentBegin

public void setSubjectFragmentBegin(int begin)
Set the start of the subject fragment.

Parameters:
begin -

getSubjectFragmentBegin

public int getSubjectFragmentBegin()
returns the start of the subject fragment

Returns:
int

setSubjectFragmentEnd

public void setSubjectFragmentEnd(int end)
Set the end of the subject fragment.

Parameters:
end -

getSubjectFragmentEnd

public int getSubjectFragmentEnd()
returns the end of the subject fragment.

Returns:
int


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