org.esa.beam.framework.processor
Class CmdLineParser

java.lang.Object
  extended by org.esa.beam.framework.processor.CmdLineParser

public class CmdLineParser
extends Object

Helper class to parse command lines with a given options set. The command lines that can be understood by this class may consist of:


Constructor Summary
CmdLineParser()
          Constructs the object with default parameters
CmdLineParser(String[] args)
          Constructs the object with given command line
 
Method Summary
 CmdLineParams getCmdLineParams()
          Returns the command line parameters parsed.
 boolean isEmptyCommandLine()
          Returns wheter the commandline is empty or has arguments
 void setArgs(String[] args)
          Sets the command line arguments to be parsed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdLineParser

public CmdLineParser()
Constructs the object with default parameters


CmdLineParser

public CmdLineParser(String[] args)
              throws ProcessorException
Constructs the object with given command line

Throws:
ProcessorException - when erros occur during parsing
Method Detail

setArgs

public void setArgs(String[] args)
             throws ProcessorException
Sets the command line arguments to be parsed.

Throws:
ProcessorException - when erros occur during parsing

getCmdLineParams

public CmdLineParams getCmdLineParams()
                               throws ProcessorException
Returns the command line parameters parsed.

Throws:
ProcessorException - when the command line is not parsed yet

isEmptyCommandLine

public boolean isEmptyCommandLine()
Returns wheter the commandline is empty or has arguments



Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.