Package psidev.psi.mi.jami.tab.extension
Class MitabDate
- java.lang.Object
-
- psidev.psi.mi.jami.tab.extension.MitabDate
-
- All Implemented Interfaces:
FileSourceContext
public class MitabDate extends Object implements FileSourceContext
This class wraps a date and a fileSourceLocator- Since:
14/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getDate()
Getter for the fielddate
.FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorString
toString()
toString
-
-
-
Constructor Detail
-
MitabDate
public MitabDate(String date) throws ParseException
Constructor for MitabDate.
- Parameters:
date
- aString
object.- Throws:
ParseException
- if any.
-
-
Method Detail
-
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
-
-