Class AbstractXmlPosition
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml254.AbstractXmlPosition
-
- All Implemented Interfaces:
com.sun.xml.bind.Locatable
,FileSourceContext
,Position
- Direct Known Subclasses:
XmlInterval
,XmlPosition
public abstract class AbstractXmlPosition extends Object implements Position, FileSourceContext, com.sun.xml.bind.Locatable
Abstract class for XmlPosition- 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 Modifier Constructor Description protected
AbstractXmlPosition()
Constructor for AbstractXmlPosition.protected
AbstractXmlPosition(CvTerm status, boolean positionUndetermined)
Constructor for AbstractXmlPosition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.CvTerm
getStatus()
Getter for the fieldstatus
.int
hashCode()
boolean
isPositionUndetermined()
isPositionUndetermined.void
setJAXBStatus(XmlCvTerm status)
setJAXBStatus.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorLocator
sourceLocation()
String
toString()
toString
-
-
-
Method Detail
-
getStatus
public CvTerm getStatus()
Getter for the field
status
.
-
setJAXBStatus
public void setJAXBStatus(XmlCvTerm status)
setJAXBStatus.
- Parameters:
status
- aXmlCvTerm
object.
-
isPositionUndetermined
public boolean isPositionUndetermined()
isPositionUndetermined.
- Specified by:
isPositionUndetermined
in interfacePosition
- Returns:
- a boolean.
-
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
-
-