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 DategetDate()Getter for the fielddate.FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorStringtoString()toString
-
-
-
Constructor Detail
-
MitabDate
public MitabDate(String date) throws ParseException
Constructor for MitabDate.
- Parameters:
date- aStringobject.- Throws:
ParseException- if any.
-
-
Method Detail
-
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
-
-