System.out.println("Available processors");
System.out.println("--------------------");
System.out.println();
for (String className : AVAILABLE_PROCESSORS)
{
IProcessor module = factory.create(className);
ConfigMap config = getDefaultProcessorModuleConfig().merge(module.getModuleConfig());
String usage = " - params: " + config.getDescription(" ");
ConfigMap processParamsConfig = module.getProcessParamsConfig();
String usage2 = "";
if (processParamsConfig != null && !processParamsConfig.isEmpty())
{
usage2 = " - parser params: " + processParamsConfig.getDescription(" ");
}
System.out.format("* %s - %s%n%s%s%n", className, module.getModuleDescription(), usage, usage2);
}
System.out.println("Available parsers");
System.out.println("-----------------");
System.out.println();
for (String className : AVAILABLE_PARSERS)
{
IParser module = factory.create(className);
ConfigMap config = getDefaultParserModuleConfig().merge(module.getModuleConfig());
String usage = " - params: " + config.getDescription(" ");
System.out.format("* %s - %s%n%s%n", className, module.getModuleDescription(), usage);
}
}