Package de.isas.mztab2.cli
Class MZTabCommandLine
- java.lang.Object
 - 
- de.isas.mztab2.cli.MZTabCommandLine
 
 
- 
public class MZTabCommandLine extends Object
MZTabCommandLine class.
- Since:
 - 17/09/13
 - Author:
 - qingwei, nilshoffmann
 
 
- 
- 
Constructor Summary
Constructors Constructor Description MZTabCommandLine() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static StringaddCheckOption(org.apache.commons.cli.Options options)protected static StringaddCheckSemanticOption(org.apache.commons.cli.Options options)protected static StringaddDeserializeOption(org.apache.commons.cli.Options options)protected static StringaddHelpOption(org.apache.commons.cli.Options options)protected static StringaddLevelOption(org.apache.commons.cli.Options options)protected static StringaddMessageOption(org.apache.commons.cli.Options options)protected static StringaddOutFileOption(org.apache.commons.cli.Options options)protected static StringaddSerializeOption(org.apache.commons.cli.Options options)protected static StringaddVersionOption(org.apache.commons.cli.Options options)protected static voidhandleMsgOption(org.apache.commons.cli.CommandLine line, String msgOpt, MZTabErrorTypeMap typeMap)protected static booleanhandleSemanticValidation(org.apache.commons.cli.CommandLine line, String checkSemanticOpt, File inFile, PrintStream outFile, MzTabFileParser mzTabParser, MZTabErrorType.Level level)protected static booleanhandleValidation(org.apache.commons.cli.CommandLine line, String checkOpt, PrintStream outFile, MZTabErrorType.Level level, String checkSemanticOpt, boolean toJson, boolean fromJson)protected static booleanhandleValidationOptions(org.apache.commons.cli.CommandLine line, String outOpt, String levelOpt, String serializeOpt, String deserializeOpt, String checkOpt, String checkSemanticOpt)static voidmain(String[] args)Runs the command line parser for mzTab, including validation. 
 - 
 
- 
- 
Constructor Detail
- 
MZTabCommandLine
public MZTabCommandLine()
 
 - 
 
- 
Method Detail
- 
main
public static void main(String[] args) throws Exception
Runs the command line parser for mzTab, including validation.
 
- 
addVersionOption
protected static String addVersionOption(org.apache.commons.cli.Options options)
 
- 
addHelpOption
protected static String addHelpOption(org.apache.commons.cli.Options options)
 
- 
addCheckSemanticOption
protected static String addCheckSemanticOption(org.apache.commons.cli.Options options) throws IllegalArgumentException
- Throws:
 IllegalArgumentException
 
- 
addDeserializeOption
protected static String addDeserializeOption(org.apache.commons.cli.Options options)
 
- 
addSerializeOption
protected static String addSerializeOption(org.apache.commons.cli.Options options)
 
- 
addLevelOption
protected static String addLevelOption(org.apache.commons.cli.Options options)
 
- 
addCheckOption
protected static String addCheckOption(org.apache.commons.cli.Options options) throws IllegalArgumentException
- Throws:
 IllegalArgumentException
 
- 
addOutFileOption
protected static String addOutFileOption(org.apache.commons.cli.Options options)
 
- 
addMessageOption
protected static String addMessageOption(org.apache.commons.cli.Options options) throws IllegalArgumentException
- Throws:
 IllegalArgumentException
 
- 
handleValidationOptions
protected static boolean handleValidationOptions(org.apache.commons.cli.CommandLine line, String outOpt, String levelOpt, String serializeOpt, String deserializeOpt, String checkOpt, String checkSemanticOpt) throws JAXBException, IllegalArgumentException, URISyntaxException
 
- 
handleMsgOption
protected static void handleMsgOption(org.apache.commons.cli.CommandLine line, String msgOpt, MZTabErrorTypeMap typeMap) throws NumberFormatException
- Throws:
 NumberFormatException
 
- 
handleValidation
protected static boolean handleValidation(org.apache.commons.cli.CommandLine line, String checkOpt, PrintStream outFile, MZTabErrorType.Level level, String checkSemanticOpt, boolean toJson, boolean fromJson) throws URISyntaxException, JAXBException, IllegalArgumentException, IOException
 
- 
handleSemanticValidation
protected static boolean handleSemanticValidation(org.apache.commons.cli.CommandLine line, String checkSemanticOpt, File inFile, PrintStream outFile, MzTabFileParser mzTabParser, MZTabErrorType.Level level) throws JAXBException, MalformedURLException, URISyntaxException
 
 - 
 
 -