Class XmlInterval
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlPosition
-
- psidev.psi.mi.jami.xml.model.extension.xml300.XmlInterval
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable,FileSourceContext,Position
public class XmlInterval extends AbstractXmlPosition
Xml implementation of a position which is an interval 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.Position
C_TERMINAL, C_TERMINAL_FULL, C_TERMINAL_MI, C_TERMINAL_RANGE, C_TERMINAL_RANGE_FULL, C_TERMINAL_RANGE_MI, CERTAIN, CERTAIN_FULL, CERTAIN_MI, GREATER_THAN, GREATER_THAN_FULL, GREATER_THAN_MI, LESS_THAN, LESS_THAN_FULL, LESS_THAN_MI, N_TERMINAL, N_TERMINAL_FULL, N_TERMINAL_MI, N_TERMINAL_RANGE, N_TERMINAL_RANGE_FULL, N_TERMINAL_RANGE_MI, RAGGED_N_TERMINAL, RAGGED_N_TERMINAL_MI, RANGE, RANGE_FULL, RANGE_MI, UNDETERMINED, UNDETERMINED_FULL, UNDETERMINED_MI
-
-
Constructor Summary
Constructors Constructor Description XmlInterval()Constructor for XmlInterval.XmlInterval(CvTerm status, boolean positionUndetermined)Constructor for XmlInterval.XmlInterval(CvTerm status, long start, long end, boolean positionUndetermined)Constructor for XmlInterval.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetEnd()Getter for the fieldend.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.longgetStart()Getter for the fieldstart.CvTermgetStatus()Getter for the fieldstatus.booleanisPositionUndetermined()isPositionUndetermined.voidsetJAXBBeginPosition(long value)Sets the value of the begin property.voidsetJAXBEndPosition(long value)Sets the value of the end property.StringtoString()toString-
Methods inherited from class psidev.psi.mi.jami.xml.model.extension.xml300.AbstractXmlPosition
equals, hashCode, setJAXBStatus, setSourceLocator, sourceLocation
-
-
-
-
Method Detail
-
getStatus
public CvTerm getStatus()
Getter for the field
status.- Specified by:
getStatusin interfacePosition- Overrides:
getStatusin classAbstractXmlPosition- Returns:
- a
CvTermobject.
-
getStart
public long getStart()
Getter for the field
start.- Returns:
- a long.
-
getEnd
public long getEnd()
Getter for the field
end.- Returns:
- a long.
-
isPositionUndetermined
public boolean isPositionUndetermined()
isPositionUndetermined.
- Specified by:
isPositionUndeterminedin interfacePosition- Overrides:
isPositionUndeterminedin classAbstractXmlPosition- Returns:
- a boolean.
-
setJAXBBeginPosition
public void setJAXBBeginPosition(long value)
Sets the value of the begin property.- Parameters:
value- allowed object isBigInteger
-
setJAXBEndPosition
public void setJAXBEndPosition(long value)
Sets the value of the end property.- Parameters:
value- allowed object isBigInteger
-
getSourceLocator
public FileSourceLocator getSourceLocator()
Getter for the field
sourceLocator.- Specified by:
getSourceLocatorin interfaceFileSourceContext- Overrides:
getSourceLocatorin classAbstractXmlPosition- Returns:
- a
FileSourceLocatorobject.
-
toString
public String toString()
toString
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classAbstractXmlPosition- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-