Class XmlRange
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.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 boolean
equals(Object o)
Position
getEnd()
Getter for the fieldend
.Entity
getParticipant()
Getter for the fieldparticipant
.ResultingSequence
getResultingSequence()
Getter for the fieldresultingSequence
.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.Position
getStart()
Getter for the fieldstart
.int
hashCode()
boolean
isLink()
Gets the value of the isLink property.void
setJAXBBeginInterval(XmlInterval value)
Sets the value of the beginInterval property.void
setJAXBBeginPosition(XmlPosition value)
Sets the value of the begin property.void
setJAXBEndInterval(XmlInterval value)
Sets the value of the endInterval property.void
setJAXBEndPosition(XmlPosition value)
Sets the value of the end property.void
setJAXBEndStatus(XmlCvTerm value)
Sets the value of the endStatus property.void
setJAXBLink(boolean link)
setJAXBLink.void
setJAXBParticipantRef(int id)
setJAXBParticipantRef.void
setJAXBParticipantRef(int id, PsiXmlLocator locator)
setJAXBParticipantRef.void
setJAXBResultingSequence(XmlResultingSequence resultingSequence)
setJAXBResultingSequence.void
setJAXBStartStatus(XmlCvTerm value)
Sets the value of the startStatus property.void
setLink(boolean link)
Sets the link boolean for this Rangevoid
setParticipant(Entity participant)
Sets the participating molecule that the range refers tovoid
setPositions(Position start, Position end)
Set the positions of the feature range in the interactor sequencevoid
setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range objectvoid
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorLocator
sourceLocation()
String
toString()
toString
-
-
-
Constructor Detail
-
XmlRange
public XmlRange()
Constructor for XmlRange.
-
XmlRange
public XmlRange(Position start, Position end, ResultingSequence resultingSequence)
Constructor for XmlRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.resultingSequence
- aResultingSequence
object.
-
XmlRange
public XmlRange(Position start, Position end, boolean isLink, ResultingSequence resultingSequence)
Constructor for XmlRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.isLink
- a boolean.resultingSequence
- aResultingSequence
object.
-
XmlRange
public XmlRange(Position start, Position end, Participant participant)
Constructor for XmlRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.participant
- aParticipant
object.
-
XmlRange
public XmlRange(Position start, Position end, boolean isLink, Participant participant)
Constructor for XmlRange.
- Parameters:
start
- aPosition
object.end
- aPosition
object.isLink
- a boolean.participant
- aParticipant
object.
-
-
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:
setPositions
in interfaceRange
- Parameters:
start
- : start positionend
- : end position
-
getResultingSequence
public ResultingSequence getResultingSequence()
Getter for the field
resultingSequence
.- Specified by:
getResultingSequence
in interfaceRange
- Returns:
- a
ResultingSequence
object.
-
setResultingSequence
public void setResultingSequence(ResultingSequence resultingSequence)
Sets the resultingSequence of this range object- Specified by:
setResultingSequence
in interfaceRange
- Parameters:
resultingSequence
- : the resulting sequence
-
getParticipant
public Entity getParticipant()
Getter for the field
participant
.- Specified by:
getParticipant
in interfaceRange
- Returns:
- a
Entity
object.
-
setParticipant
public void setParticipant(Entity participant)
Sets the participating molecule that the range refers to- Specified by:
setParticipant
in interfaceRange
- Parameters:
participant
- aEntity
object.
-
setJAXBResultingSequence
public void setJAXBResultingSequence(XmlResultingSequence resultingSequence)
setJAXBResultingSequence.
- Parameters:
resultingSequence
- aXmlResultingSequence
object.
-
setJAXBParticipantRef
public void setJAXBParticipantRef(int id, PsiXmlLocator locator)
setJAXBParticipantRef.
- Parameters:
id
- a int.locator
- aPsiXmlLocator
object.
-
setJAXBParticipantRef
public void setJAXBParticipantRef(int id)
setJAXBParticipantRef.
- Parameters:
id
- a int.
-
sourceLocation
public Locator sourceLocation()
- Specified by:
sourceLocation
in interfacecom.sun.xml.bind.Locatable
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator
.- Specified by:
getSourceLocator
in interfaceFileSourceContext
- Returns:
- a
FileSourceLocator
object.
-
setSourceLocator
public void setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locator- Specified by:
setSourceLocator
in interfaceFileSourceContext
- Parameters:
sourceLocator
- : the file locator
-
toString
public String toString()
toString
- Specified by:
toString
in interfaceFileSourceContext
- Overrides:
toString
in classObject
- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-