Package psidev.psi.mi.jami.tab.extension
Class MitabParameter
- java.lang.Object
-
- psidev.psi.mi.jami.model.impl.DefaultParameter
-
- psidev.psi.mi.jami.model.impl.DefaultModelledParameter
-
- psidev.psi.mi.jami.tab.extension.MitabParameter
-
- All Implemented Interfaces:
FileSourceContext,ModelledParameter,Parameter
public class MitabParameter extends DefaultModelledParameter implements FileSourceContext
Mitab extension of Parameter- Since:
11/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MitabParameter(String type, String value, String unit)Constructor for MitabParameter.MitabParameter(CvTerm type, String value)Constructor for MitabParameter.MitabParameter(CvTerm type, String value, CvTerm unit)Constructor for MitabParameter.MitabParameter(CvTerm type, ParameterValue value)Constructor for MitabParameter.MitabParameter(CvTerm type, ParameterValue value, BigDecimal uncertainty)Constructor for MitabParameter.MitabParameter(CvTerm type, ParameterValue value, CvTerm unit)Constructor for MitabParameter.MitabParameter(CvTerm type, ParameterValue value, CvTerm unit, BigDecimal uncertainty)Constructor for MitabParameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileSourceLocatorgetSourceLocator()Getter for the fieldsourceLocator.voidsetSourceLocator(FileSourceLocator sourceLocator)Sets the source locatorStringtoString()-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultModelledParameter
getPublication, setPublication
-
Methods inherited from class psidev.psi.mi.jami.model.impl.DefaultParameter
equals, getType, getUncertainty, getUnit, getValue, hashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface psidev.psi.mi.jami.model.Parameter
getType, getUncertainty, getUnit, getValue
-
-
-
-
Constructor Detail
-
MitabParameter
public MitabParameter(CvTerm type, ParameterValue value)
Constructor for MitabParameter.
- Parameters:
type- aCvTermobject.value- aParameterValueobject.
-
MitabParameter
public MitabParameter(CvTerm type, ParameterValue value, CvTerm unit)
Constructor for MitabParameter.
- Parameters:
type- aCvTermobject.value- aParameterValueobject.unit- aCvTermobject.
-
MitabParameter
public MitabParameter(CvTerm type, ParameterValue value, CvTerm unit, BigDecimal uncertainty)
Constructor for MitabParameter.
- Parameters:
type- aCvTermobject.value- aParameterValueobject.unit- aCvTermobject.uncertainty- aBigDecimalobject.
-
MitabParameter
public MitabParameter(CvTerm type, ParameterValue value, BigDecimal uncertainty)
Constructor for MitabParameter.
- Parameters:
type- aCvTermobject.value- aParameterValueobject.uncertainty- aBigDecimalobject.
-
MitabParameter
public MitabParameter(CvTerm type, String value) throws IllegalParameterException
Constructor for MitabParameter.
- Parameters:
type- aCvTermobject.value- aStringobject.- Throws:
IllegalParameterException- if any.
-
MitabParameter
public MitabParameter(CvTerm type, String value, CvTerm unit) throws IllegalParameterException
Constructor for MitabParameter.
- Parameters:
type- aCvTermobject.value- aStringobject.unit- aCvTermobject.- Throws:
IllegalParameterException- if any.
-
MitabParameter
public MitabParameter(String type, String value, String unit) throws IllegalParameterException
Constructor for MitabParameter.
- Parameters:
type- aStringobject.value- aStringobject.unit- aStringobject.- Throws:
IllegalParameterException- 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()
- Specified by:
toStringin interfaceFileSourceContext- Overrides:
toStringin classDefaultParameter- Returns:
- the file source context as a String. If the source locator is not null, it should give the source locator properties
-
-