Package de.isas.mztab2.cvmapping
Class CvMappingUtils
- java.lang.Object
-
- de.isas.mztab2.cvmapping.CvMappingUtils
-
public class CvMappingUtils extends Object
Utility methods for conversion between the mapping file domain and the mzTab domain.- Author:
- nilshoffmann
-
-
Constructor Summary
Constructors Constructor Description CvMappingUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Parameter
asParameter(CvTerm term)
static Parameter
asParameter(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term)
static boolean
isEqualTo(Parameter one, Parameter two)
static boolean
isEqualTo(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term, Parameter param)
static String
niceToString(CvMappingRule rule)
Creates a user-friendly string of a mapping rule.static MZTabErrorType.Level
toErrorLevel(CvMappingRule.RequirementLevel requirementLevel)
Maps the provided requirement level to the corresponding MZTabErrorType.Level.static String
toString(CvMappingRule rule)
Creates a string representation of a mapping rule.static String
toString(List<CvTerm> terms)
-
-
-
Constructor Detail
-
CvMappingUtils
public CvMappingUtils()
-
-
Method Detail
-
toErrorLevel
public static MZTabErrorType.Level toErrorLevel(CvMappingRule.RequirementLevel requirementLevel)
Maps the provided requirement level to the corresponding MZTabErrorType.Level.- Parameters:
requirementLevel
- the requirement level- Returns:
- the corresponding error type level
-
niceToString
public static String niceToString(CvMappingRule rule)
Creates a user-friendly string of a mapping rule.- Parameters:
rule
- the cv mapping rule- Returns:
- the string representation
-
toString
public static String toString(CvMappingRule rule)
Creates a string representation of a mapping rule.- Parameters:
rule
- the cv mapping rule- Returns:
- the string representation
- See Also:
for a nicer string intended for humans
-
isEqualTo
public static boolean isEqualTo(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term, Parameter param)
-
asParameter
public static Parameter asParameter(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term)
-
asParameter
public static Parameter asParameter(CvTerm term)
-
-