org.openstreetmap.osmosis.core.cli
Class CommandLineParser

java.lang.Object
  extended by org.openstreetmap.osmosis.core.cli.CommandLineParser

public class CommandLineParser
extends java.lang.Object

Parses command line arguments into a form that can be consumed by the rest of the application.

Author:
Brett Henderson

Constructor Summary
CommandLineParser()
          Creates a new instance.
 
Method Summary
 java.util.logging.Level getLogLevel()
          The level of logging required.
 java.util.List<java.lang.String> getPlugins()
          Returns the plugins to be loaded.
 java.util.List<TaskConfiguration> getTaskInfoList()
          The list of task information objects.
 void parse(java.lang.String[] programArgs)
          Parses the command line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineParser

public CommandLineParser()
Creates a new instance.

Method Detail

parse

public void parse(java.lang.String[] programArgs)
Parses the command line arguments.

Parameters:
programArgs - The arguments.

getTaskInfoList

public java.util.List<TaskConfiguration> getTaskInfoList()
The list of task information objects.

Returns:
The taskInfoList.

getLogLevel

public java.util.logging.Level getLogLevel()
The level of logging required.

Returns:
The log level to be used.

getPlugins

public java.util.List<java.lang.String> getPlugins()
Returns the plugins to be loaded.

Returns:
The list of plugin class names.