Package uk.ac.ebi.pride.jmztab2.model
Class MZTabStringUtils
- java.lang.Object
-
- uk.ac.ebi.pride.jmztab2.model.MZTabStringUtils
-
public final class MZTabStringUtils extends Object
Provide a couple of functions for translate, parse and print formatted string defined in the mzTab specification.- Since:
- 30/01/13
- Author:
- qingwei
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isEmpty(String s)
Check the string is null or blank.static String
parseString(String target)
Pre-process the String object.static String
toCapital(String s)
Translate the string to the first char is upper case, others are lower case.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(String s)
Check the string is null or blank.- Parameters:
s
- aString
object.- Returns:
- a boolean.
-
toCapital
public static String toCapital(String s)
Translate the string to the first char is upper case, others are lower case.
-
parseString
public static String parseString(String target)
Pre-process the String object. If object is null, return null; otherwise remove heading and tailing white space.
-
-