Package psidev.psi.mi.jami.model
Interface Range
-
- All Known Implementing Classes:
CsvRange,DefaultRange,MitabRange,XmlRange,XmlRange,XmlRange
public interface RangeA feature range indicates the positions of a feature in the interactor sequence- Since:
22/11/12
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
Fields Modifier and Type Field Description static StringC_TERMINAL_POSITION_SYMBOLConstantC_TERMINAL_POSITION_SYMBOL="c"static StringFUZZY_POSITION_SYMBOLConstantFUZZY_POSITION_SYMBOL=".."static StringGREATER_THAN_POSITION_SYMBOLConstantGREATER_THAN_POSITION_SYMBOL=">"static StringLESS_THAN_POSITION_SYMBOLConstantLESS_THAN_POSITION_SYMBOL="<"static StringN_TERMINAL_POSITION_SYMBOLConstantN_TERMINAL_POSITION_SYMBOL="n"static StringPOSITION_SEPARATORConstantPOSITION_SEPARATOR="-"static StringUNDETERMINED_POSITION_SYMBOLConstantUNDETERMINED_POSITION_SYMBOL="?"
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PositiongetEnd()The end position of the feature range in the interactor sequence It cannot be nullEntitygetParticipant()The participating molecule that this range refers to.ResultingSequencegetResultingSequence()The resultingSequence in case of mutation or variant.PositiongetStart()The start position of the feature range in the interactor sequence It cannot be nullbooleanisLink()Link boolean to know if two amino acids/nucleic acids are linked in the feature range (ex: disulfure bridges).voidsetLink(boolean link)Sets the link boolean for this RangevoidsetParticipant(Entity participant)Sets the participating molecule that the range refers tovoidsetPositions(Position start, Position end)Set the positions of the feature range in the interactor sequencevoidsetResultingSequence(ResultingSequence resultingSequence)Sets the resultingSequence of this range object
-
-
-
Field Detail
-
POSITION_SEPARATOR
static final String POSITION_SEPARATOR
ConstantPOSITION_SEPARATOR="-"- See Also:
- Constant Field Values
-
N_TERMINAL_POSITION_SYMBOL
static final String N_TERMINAL_POSITION_SYMBOL
ConstantN_TERMINAL_POSITION_SYMBOL="n"- See Also:
- Constant Field Values
-
C_TERMINAL_POSITION_SYMBOL
static final String C_TERMINAL_POSITION_SYMBOL
ConstantC_TERMINAL_POSITION_SYMBOL="c"- See Also:
- Constant Field Values
-
UNDETERMINED_POSITION_SYMBOL
static final String UNDETERMINED_POSITION_SYMBOL
ConstantUNDETERMINED_POSITION_SYMBOL="?"- See Also:
- Constant Field Values
-
FUZZY_POSITION_SYMBOL
static final String FUZZY_POSITION_SYMBOL
ConstantFUZZY_POSITION_SYMBOL=".."- See Also:
- Constant Field Values
-
GREATER_THAN_POSITION_SYMBOL
static final String GREATER_THAN_POSITION_SYMBOL
ConstantGREATER_THAN_POSITION_SYMBOL=">"- See Also:
- Constant Field Values
-
LESS_THAN_POSITION_SYMBOL
static final String LESS_THAN_POSITION_SYMBOL
ConstantLESS_THAN_POSITION_SYMBOL="<"- See Also:
- Constant Field Values
-
-
Method Detail
-
getStart
Position getStart()
The start position of the feature range in the interactor sequence It cannot be null- Returns:
- the start position
-
getEnd
Position getEnd()
The end position of the feature range in the interactor sequence It cannot be null- Returns:
- the end position
-
setPositions
void setPositions(Position start, Position end)
Set the positions of the feature range in the interactor sequence- Parameters:
start- : start positionend- : end position- Throws:
IllegalArgumentException- if - start or end is null - start is greater than end
-
isLink
boolean isLink()
Link boolean to know if two amino acids/nucleic acids are linked in the feature range (ex: disulfure bridges).- Returns:
- true if two amino acids/nucleic acids are linked together (does not form a linear feature).
-
setLink
void setLink(boolean link)
Sets the link boolean for this Range- Parameters:
link- : the linked value
-
getResultingSequence
ResultingSequence getResultingSequence()
The resultingSequence in case of mutation or variant. It can be null if not relevant for this range.- Returns:
- the ResultingSequence if there is a sequence change for this range object, null otherwise
-
setResultingSequence
void setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object- Parameters:
resultingSequence- : the resulting sequence
-
getParticipant
Entity getParticipant()
The participating molecule that this range refers to. It can refer to any entity (participant, participant candidate, etc.) It can be null. If null, the range is applied to the participant reporting the feature.- Returns:
- The participant that the range is referring to
-
-