Package psidev.psi.mi.jami.datasource
Class DefaultFileSourceContext
- java.lang.Object
-
- psidev.psi.mi.jami.datasource.DefaultFileSourceContext
-
- All Implemented Interfaces:
FileSourceContext
public class DefaultFileSourceContext extends Object implements FileSourceContext
A DefaultFileSourceContext is the basic implementation of FileSourceContext and contains some file location information- Since:
01/03/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultFileSourceContext()
Constructor for DefaultFileSourceContext.DefaultFileSourceContext(int lineNumber, int columnNumber)
Constructor for DefaultFileSourceContext.DefaultFileSourceContext(FileSourceLocator locator)
Constructor for DefaultFileSourceContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSourceLocator
getSourceLocator()
Getter for the fieldsourceLocator
.void
setSourceLocator(FileSourceLocator sourceLocator)
Sets the source locatorString
toString()
toString
-
-
-
Constructor Detail
-
DefaultFileSourceContext
public DefaultFileSourceContext()
Constructor for DefaultFileSourceContext.
-
DefaultFileSourceContext
public DefaultFileSourceContext(FileSourceLocator locator)
Constructor for DefaultFileSourceContext.
- Parameters:
locator
- aFileSourceLocator
object.
-
DefaultFileSourceContext
public DefaultFileSourceContext(int lineNumber, int columnNumber)
Constructor for DefaultFileSourceContext.
- Parameters:
lineNumber
- a int.columnNumber
- a int.
-
-
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
-
-