Apache CXF API

org.apache.cxf.tools.common.toolspec
Class AbstractToolContainer

java.lang.Object
  extended by org.apache.cxf.tools.common.toolspec.AbstractToolContainer
All Implemented Interfaces:
ToolContainer
Direct Known Subclasses:
AbstractCXFToolContainer

public abstract class AbstractToolContainer
extends Object
implements ToolContainer


Nested Class Summary
 class AbstractToolContainer.GenericOutputStream
           
 
Field Summary
protected  ToolContext context
           
protected  PrintStream err
           
protected  PrintStream out
           
protected  ToolSpec toolspec
           
 
Constructor Summary
AbstractToolContainer()
           
AbstractToolContainer(ToolSpec ts)
           
 
Method Summary
 void execute(boolean exitOnFinish)
           
 String[] getArgument()
           
 Bus getBus()
           
protected  String getCatalogURL()
           
 CommandDocument getCommandDocument()
           
 CommandLineParser getCommandLineParser()
           
 ToolContext getContext()
           
 OutputStream getErrOutputStream()
           
 OutputStream getOutOutputStream()
           
 void init()
           
 boolean isQuietMode()
           
 boolean isVerboseMode()
           
 void parseCommandLine()
           
 void redirectOutput()
           
 void setArguments(String[] args)
           
 void setContext(ToolContext c)
           
 void setErrOutputStream(OutputStream errOutputStream)
           
 void setMode(String[] args)
           
 void setOutOutputStream(OutputStream outOutputStream)
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolspec

protected ToolSpec toolspec

context

protected ToolContext context

out

protected PrintStream out

err

protected PrintStream err
Constructor Detail

AbstractToolContainer

public AbstractToolContainer()

AbstractToolContainer

public AbstractToolContainer(ToolSpec ts)
                      throws BadUsageException
Throws:
BadUsageException
Method Detail

setArguments

public void setArguments(String[] args)
Specified by:
setArguments in interface ToolContainer

parseCommandLine

public void parseCommandLine()
                      throws BadUsageException
Throws:
BadUsageException

setMode

public void setMode(String[] args)

init

public void init()
          throws ToolException
Throws:
ToolException

getCommandDocument

public CommandDocument getCommandDocument()

getCommandLineParser

public CommandLineParser getCommandLineParser()

redirectOutput

public void redirectOutput()

isQuietMode

public boolean isQuietMode()

isVerboseMode

public boolean isVerboseMode()

getArgument

public String[] getArgument()

getOutOutputStream

public OutputStream getOutOutputStream()

setOutOutputStream

public void setOutOutputStream(OutputStream outOutputStream)
Specified by:
setOutOutputStream in interface ToolContainer

getErrOutputStream

public OutputStream getErrOutputStream()

setErrOutputStream

public void setErrOutputStream(OutputStream errOutputStream)
Specified by:
setErrOutputStream in interface ToolContainer

setContext

public void setContext(ToolContext c)
Specified by:
setContext in interface ToolContainer

getContext

public ToolContext getContext()

execute

public void execute(boolean exitOnFinish)
             throws ToolException
Specified by:
execute in interface ToolContainer
Throws:
ToolException

tearDown

public void tearDown()

getBus

public Bus getBus()

getCatalogURL

protected String getCatalogURL()

Apache CXF API

Apache CXF