Class 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)
    • Method Detail

      • isLink

        public boolean isLink()
        Gets the value of the isLink property.
        Specified by:
        isLink in interface Range
        Returns:
        a boolean.
      • setLink

        public void setLink​(boolean link)
        Sets the link boolean for this Range
        Specified by:
        setLink in interface Range
        Parameters:
        link - : the linked value
      • setJAXBStartStatus

        public void setJAXBStartStatus​(XmlCvTerm value)
        Sets the value of the startStatus property.
        Parameters:
        value - allowed object is XmlCvTerm
      • setJAXBBeginInterval

        public void setJAXBBeginInterval​(XmlInterval value)
        Sets the value of the beginInterval property.
        Parameters:
        value - allowed object is XmlInterval
      • setJAXBBeginPosition

        public void setJAXBBeginPosition​(XmlPosition value)
        Sets the value of the begin property.
        Parameters:
        value - allowed object is Position
      • setJAXBEndStatus

        public void setJAXBEndStatus​(XmlCvTerm value)
        Sets the value of the endStatus property.
        Parameters:
        value - allowed object is XmlCvTerm
      • setJAXBEndInterval

        public void setJAXBEndInterval​(XmlInterval value)
        Sets the value of the endInterval property.
        Parameters:
        value - allowed object is XmlInterval
      • setJAXBEndPosition

        public void setJAXBEndPosition​(XmlPosition value)
        Sets the value of the end property.
        Parameters:
        value - allowed object is XmlPosition
      • 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 interface Range
        Parameters:
        start - : start position
        end - : end position
      • setResultingSequence

        public void setResultingSequence​(ResultingSequence resultingSequence)
        Sets the resultingSequence of this range object
        Specified by:
        setResultingSequence in interface Range
        Parameters:
        resultingSequence - : the resulting sequence
      • getParticipant

        public Entity getParticipant()

        Getter for the field participant.

        Specified by:
        getParticipant in interface Range
        Returns:
        a Entity object.
      • setParticipant

        public void setParticipant​(Entity participant)
        Sets the participating molecule that the range refers to
        Specified by:
        setParticipant in interface Range
        Parameters:
        participant - a Entity object.
      • setJAXBParticipantRef

        public void setJAXBParticipantRef​(int id,
                                          PsiXmlLocator locator)

        setJAXBParticipantRef.

        Parameters:
        id - a int.
        locator - a PsiXmlLocator object.
      • setJAXBParticipantRef

        public void setJAXBParticipantRef​(int id)

        setJAXBParticipantRef.

        Parameters:
        id - a int.
      • sourceLocation

        public Locator sourceLocation()
        Specified by:
        sourceLocation in interface com.sun.xml.bind.Locatable
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toString

        public String toString()

        toString

        Specified by:
        toString in interface FileSourceContext
        Overrides:
        toString in class Object
        Returns:
        the file source context as a String. If the source locator is not null, it should give the source locator properties