Package psidev.psi.mi.jami.utils
Class ParameterUtils
- java.lang.Object
-
- psidev.psi.mi.jami.utils.ParameterUtils
-
public class ParameterUtils extends Object
Utility class for parameters- Since:
11/02/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description ParameterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parameter
createParameterFromString(String type, String value)
createParameterFromStringstatic Parameter
createParameterFromString(String type, String value, String unit)
createParameterFromStringstatic Parameter
createParameterFromString(CvTerm type, String value)
createParameterFromStringstatic Parameter
createParameterFromString(CvTerm type, String value, CvTerm unit)
createParameterFromStringstatic String
getParameterValueAsString(Parameter param)
getParameterValueAsString
-
-
-
Method Detail
-
getParameterValueAsString
public static String getParameterValueAsString(Parameter param)
getParameterValueAsString
-
createParameterFromString
public static Parameter createParameterFromString(String type, String value) throws IllegalParameterException
createParameterFromString
- Parameters:
type
- aString
object.value
- aString
object.- Returns:
- a
Parameter
object. - Throws:
IllegalParameterException
- if any.
-
createParameterFromString
public static Parameter createParameterFromString(CvTerm type, String value) throws IllegalParameterException
createParameterFromString
- Parameters:
type
- aCvTerm
object.value
- aString
object.- Returns:
- a
Parameter
object. - Throws:
IllegalParameterException
- if any.
-
createParameterFromString
public static Parameter createParameterFromString(String type, String value, String unit) throws IllegalParameterException
createParameterFromString
- Parameters:
type
- aString
object.value
- aString
object.unit
- aString
object.- Returns:
- a
Parameter
object. - Throws:
IllegalParameterException
- if any.
-
createParameterFromString
public static Parameter createParameterFromString(CvTerm type, String value, CvTerm unit) throws IllegalParameterException
createParameterFromString
- Parameters:
type
- aCvTerm
object.value
- aString
object.unit
- aCvTerm
object.- Returns:
- a
Parameter
object. - Throws:
IllegalParameterException
- if any.
-
-