org.apache.geronimo.cli
Class BaseCLParser

java.lang.Object
  extended by org.apache.geronimo.cli.BaseCLParser
All Implemented Interfaces:
CLParser
Direct Known Subclasses:
ClientCLParser, DaemonCLParser, DeployerCLParser

public class BaseCLParser
extends Object
implements CLParser


Field Summary
protected  org.apache.commons.cli.CommandLine commandLine
           
protected  org.apache.commons.cli.Options options
           
protected  OutputStream out
           
 
Constructor Summary
BaseCLParser(OutputStream out)
           
 
Method Summary
protected  void addHelp()
           
protected  void addVerboseOptions()
           
 void displayHelp()
           
protected  void displayHelp(String[] args)
           
 String[] getArgs()
           
 boolean isHelp()
           
 boolean isVerboseDebug()
           
 boolean isVerboseInfo()
           
 boolean isVerboseTrace()
           
 void parse(String[] args)
           
protected  void validateOptions()
           
protected  void validateRemainingArgs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected final OutputStream out

options

protected final org.apache.commons.cli.Options options

commandLine

protected org.apache.commons.cli.CommandLine commandLine
Constructor Detail

BaseCLParser

public BaseCLParser(OutputStream out)
Method Detail

parse

public void parse(String[] args)
           throws CLParserException
Specified by:
parse in interface CLParser
Throws:
CLParserException

isHelp

public boolean isHelp()
Specified by:
isHelp in interface CLParser

isVerboseInfo

public boolean isVerboseInfo()
Specified by:
isVerboseInfo in interface CLParser

isVerboseDebug

public boolean isVerboseDebug()
Specified by:
isVerboseDebug in interface CLParser

isVerboseTrace

public boolean isVerboseTrace()
Specified by:
isVerboseTrace in interface CLParser

getArgs

public String[] getArgs()

displayHelp

public void displayHelp()
Specified by:
displayHelp in interface CLParser

displayHelp

protected void displayHelp(String[] args)

validateOptions

protected void validateOptions()
                        throws CLParserException
Throws:
CLParserException

validateRemainingArgs

protected void validateRemainingArgs()
                              throws CLParserException
Throws:
CLParserException

addHelp

protected void addHelp()

addVerboseOptions

protected void addVerboseOptions()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.