org.intuitel.merger
public class MergerCLI extends Object
The INTUITEL Merger is a software library that translates course information from and to several formats, with the main goal of obtaining SLOM compliant courses. The MergerCLI class is a command line trigger of the funcionality provided by the library
Therefore, the interface ofered by the MergerCLI allows for the transformations from and to different formats for learning courses. MergerCLI assumes that the courses are stored in a local file, and also writes the output in a local file.
To complete a transformation, the user must provide the location (the path) of the input and output files, and also the input and output formats. The tool usage instructions are:
USAGE: mergerCLI -f <formatName> -i <path> -o <path> [-p <formatName>] -------- -f,--inputFormat <formatName> The format of the Input file to be transformed. Valid options are: slom, scorm, smw, imsld -i,--inputFile <path> Input file to be transformed. -o,--outputFile <path> Output file to write the results. merger_output is the default value -p,--outputFormat <formatName> The format of the Output file. Valid options are: slom, scorm, imsld
Constructor and Description |
---|
MergerCLI() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Executes the command line interface.
|
static void |
processCmdLine(String[] args,
PrintWriter outputConsole)
Does the actual processing.
|
public static void main(String[] args)
This method triggers the command line interface..
args
- As explained in the class descriptionpublic static void processCmdLine(String[] args, PrintWriter outputConsole)
This method encapsulates the arguments parsing and processing, doing the actual transformation tasks.
As a public method, can be used by other developers who want to write code that simulate the command line interface usage. This is useful, for example, to implement JUnit testing procedures.
args
- As explained in the class descriptionoutputConsole
- The PrintWriter that will receive the messages to the user (System.out in normal usage)Copyright © 2014. All rights reserved.