Class AbstractXmlPosition
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.xml253.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 protectedAbstractXmlPosition()Constructor for AbstractXmlPosition.protectedAbstractXmlPosition(CvTerm status, boolean positionUndetermined)Constructor for AbstractXmlPosition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.CvTermgetStatus()Getter for the fieldstatus.inthashCode()booleanisPositionUndetermined()isPositionUndetermined.voidsetJAXBStatus(XmlCvTerm status)setJAXBStatus.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorLocatorsourceLocation()StringtoString()toString
-
-
-
Method Detail
-
getStatus
public CvTerm getStatus()
Getter for the field
status.
-
setJAXBStatus
public void setJAXBStatus(XmlCvTerm status)
setJAXBStatus.
- Parameters:
status- aXmlCvTermobject.
-
isPositionUndetermined
public boolean isPositionUndetermined()
isPositionUndetermined.
- Specified by:
isPositionUndeterminedin interfacePosition- Returns:
- a boolean.
-
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
-
-