Package psidev.psi.mi.jami.model
Interface ResultingSequence
-
- All Known Implementing Classes:
DefaultResultingSequence
,XmlResultingSequence
,XmlResultingSequence
,XmlResultingSequence
public interface ResultingSequence
This interface is for representing a sequence portion that has been changed (by mutation, a variant, etc.)- Since:
20/05/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getNewSequence()
The resulting sequence portion.String
getOriginalSequence()
The original sequence portion.<X extends Xref>
Collection<X>getXrefs()
The collection of external database cross-references for this resulting sequence portion.void
setNewSequence(String sequence)
Sets the new sequence of this objectvoid
setOriginalSequence(String sequence)
Sets the original sequence of this object
-
-
-
Method Detail
-
getNewSequence
String getNewSequence()
The resulting sequence portion. It can be null if we provide a valid Xref to a variant database such as dbSNP.- Returns:
- The resulting sequence portion as a String
-
getOriginalSequence
String getOriginalSequence()
The original sequence portion. It can be null if we provide a valid Xref to a variant database such as dbSNP.- Returns:
- The original sequence portion.
-
getXrefs
<X extends Xref> Collection<X> getXrefs()
The collection of external database cross-references for this resulting sequence portion. It cannot be null so if the ResultingSequence does not have any Xrefs, the method should return an empty collection- Type Parameters:
X
- a X object- Returns:
- The collection of xrefs for this resultingSequence object
-
setNewSequence
void setNewSequence(String sequence)
Sets the new sequence of this object- Parameters:
sequence
- : new sequence
-
setOriginalSequence
void setOriginalSequence(String sequence)
Sets the original sequence of this object- Parameters:
sequence
- : original sequence
-
-