Class XmlRange
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml254.XmlRange
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Range
public class XmlRange extends Object implements Range, FileSourceContext, com.sun.xml.bind.Locatable
Xml implementation of Range The JAXB binding is designed to be read-only and is not designed for writing- Since:
19/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from interface psidev.psi.mi.jami.model.Range
C_TERMINAL_POSITION_SYMBOL, FUZZY_POSITION_SYMBOL, GREATER_THAN_POSITION_SYMBOL, LESS_THAN_POSITION_SYMBOL, N_TERMINAL_POSITION_SYMBOL, POSITION_SEPARATOR, UNDETERMINED_POSITION_SYMBOL
-
-
Constructor Summary
Constructors Constructor Description XmlRange()Constructor for XmlRange.XmlRange(Position start, Position end)Constructor for XmlRange.XmlRange(Position start, Position end, boolean isLink)Constructor for XmlRange.XmlRange(Position start, Position end, boolean isLink, Participant participant)Constructor for XmlRange.XmlRange(Position start, Position end, boolean isLink, ResultingSequence resultingSequence)Constructor for XmlRange.XmlRange(Position start, Position end, Participant participant)Constructor for XmlRange.XmlRange(Position start, Position end, ResultingSequence resultingSequence)Constructor for XmlRange.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)PositiongetEnd()Getter for the fieldend.EntitygetParticipant()Getter for the fieldparticipant.ResultingSequencegetResultingSequence()Getter for the fieldresultingSequence.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.PositiongetStart()Getter for the fieldstart.inthashCode()booleanisLink()Gets the value of the isLink property.voidsetJAXBBeginInterval(XmlInterval value)Sets the value of the beginInterval property.voidsetJAXBBeginPosition(XmlPosition value)Sets the value of the begin property.voidsetJAXBEndInterval(XmlInterval value)Sets the value of the endInterval property.voidsetJAXBEndPosition(XmlPosition value)Sets the value of the end property.voidsetJAXBEndStatus(XmlCvTerm value)Sets the value of the endStatus property.voidsetJAXBLink(boolean link)setJAXBLink.voidsetJAXBParticipantRef(int id)setJAXBParticipantRef.voidsetJAXBParticipantRef(int id, PsiXmlLocator locator)setJAXBParticipantRef.voidsetJAXBResultingSequence(XmlResultingSequence resultingSequence)setJAXBResultingSequence.voidsetJAXBStartStatus(XmlCvTerm value)Sets the value of the startStatus property.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 objectvoidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Constructor Detail
-
XmlRange
public XmlRange()
Constructor for XmlRange.
-
XmlRange
public XmlRange(Position start, Position end, ResultingSequence resultingSequence)
Constructor for XmlRange.
- Parameters:
start- aPositionobject.end- aPositionobject.resultingSequence- aResultingSequenceobject.
-
XmlRange
public XmlRange(Position start, Position end, boolean isLink, ResultingSequence resultingSequence)
Constructor for XmlRange.
- Parameters:
start- aPositionobject.end- aPositionobject.isLink- a boolean.resultingSequence- aResultingSequenceobject.
-
XmlRange
public XmlRange(Position start, Position end, Participant participant)
Constructor for XmlRange.
- Parameters:
start- aPositionobject.end- aPositionobject.participant- aParticipantobject.
-
XmlRange
public XmlRange(Position start, Position end, boolean isLink, Participant participant)
Constructor for XmlRange.
- Parameters:
start- aPositionobject.end- aPositionobject.isLink- a boolean.participant- aParticipantobject.
-
-
Method Detail
-
getStart
public Position getStart()
Getter for the field
start.
-
getEnd
public Position getEnd()
Getter for the field
end.
-
isLink
public boolean isLink()
Gets the value of the isLink property.
-
setLink
public void setLink(boolean link)
Sets the link boolean for this Range
-
setJAXBStartStatus
public void setJAXBStartStatus(XmlCvTerm value)
Sets the value of the startStatus property.- Parameters:
value- allowed object isXmlCvTerm
-
setJAXBBeginInterval
public void setJAXBBeginInterval(XmlInterval value)
Sets the value of the beginInterval property.- Parameters:
value- allowed object isXmlInterval
-
setJAXBBeginPosition
public void setJAXBBeginPosition(XmlPosition value)
Sets the value of the begin property.- Parameters:
value- allowed object isPosition
-
setJAXBEndStatus
public void setJAXBEndStatus(XmlCvTerm value)
Sets the value of the endStatus property.- Parameters:
value- allowed object isXmlCvTerm
-
setJAXBEndInterval
public void setJAXBEndInterval(XmlInterval value)
Sets the value of the endInterval property.- Parameters:
value- allowed object isXmlInterval
-
setJAXBEndPosition
public void setJAXBEndPosition(XmlPosition value)
Sets the value of the end property.- Parameters:
value- allowed object isXmlPosition
-
setJAXBLink
public void setJAXBLink(boolean link)
setJAXBLink.
- Parameters:
link- a boolean.
-
setPositions
public void setPositions(Position start, Position end)
Set the positions of the feature range in the interactor sequence- Specified by:
setPositionsin interfaceRange- Parameters:
start- : start positionend- : end position
-
getResultingSequence
public ResultingSequence getResultingSequence()
Getter for the field
resultingSequence.- Specified by:
getResultingSequencein interfaceRange- Returns:
- a
ResultingSequenceobject.
-
setResultingSequence
public void setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object- Specified by:
setResultingSequencein interfaceRange- Parameters:
resultingSequence- : the resulting sequence
-
getParticipant
public Entity getParticipant()
Getter for the field
participant.- Specified by:
getParticipantin interfaceRange- Returns:
- a
Entityobject.
-
setParticipant
public void setParticipant(Entity participant)
Sets the participating molecule that the range refers to- Specified by:
setParticipantin interfaceRange- Parameters:
participant- aEntityobject.
-
setJAXBResultingSequence
public void setJAXBResultingSequence(XmlResultingSequence resultingSequence)
setJAXBResultingSequence.
- Parameters:
resultingSequence- aXmlResultingSequenceobject.
-
setJAXBParticipantRef
public void setJAXBParticipantRef(int id, PsiXmlLocator locator)setJAXBParticipantRef.
- Parameters:
id- a int.locator- aPsiXmlLocatorobject.
-
setJAXBParticipantRef
public void setJAXBParticipantRef(int id)
setJAXBParticipantRef.
- Parameters:
id- a int.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocationin interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Returns:
- a
FileSourceLocatorobject.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocatorin interfaceFileSourceContext- Parameters:
sourceLocator- : the file locator
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classObject- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-