org.apache.cxf.tools.common
Class AbstractCXFToolContainer
java.lang.Object
org.apache.cxf.tools.common.toolspec.AbstractToolContainer
org.apache.cxf.tools.common.AbstractCXFToolContainer
- All Implemented Interfaces:
- ToolContainer
- Direct Known Subclasses:
- IDLToWSDL, JavaToJS, JavaToWSContainer, WSDLToIDL, WSDLToJavaContainer, WSDLToService, WSDLToSoap, WSDLToXML, WSDLValidator, XSDToWSDL
public abstract class AbstractCXFToolContainer
- extends AbstractToolContainer
Common processing for the CXF tools. Processes common options.
Methods inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer |
getArgument, getBus, getCatalogURL, getCommandDocument, getCommandLineParser, getContext, getErrOutputStream, getOutOutputStream, init, isQuietMode, isVerboseMode, parseCommandLine, redirectOutput, setArguments, setContext, setErrOutputStream, setMode, setOutOutputStream, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final Logger LOG
AbstractCXFToolContainer
public AbstractCXFToolContainer(String nm,
ToolSpec toolspec)
throws Exception
- Throws:
Exception
hasInfoOption
public boolean hasInfoOption()
throws ToolException
- Throws:
ToolException
execute
public void execute(boolean exitOnFinish)
throws ToolException
- Specified by:
execute
in interface ToolContainer
- Overrides:
execute
in class AbstractToolContainer
- Throws:
ToolException
checkParams
public void checkParams(ErrorVisitor err)
throws ToolException
- Check command-line parameters for validity. Since subclasses delegate down to here,
this cannot complain about unwanted options.
- Parameters:
err
- place to report errors.
- Throws:
ToolException
- for impossible options.
isVerboseOn
public boolean isVerboseOn()
getToolName
public String getToolName()
getUsage
public String getUsage()
outputVersion
public void outputVersion()
outputFullCommandLine
public void outputFullCommandLine()
getFileBase
public String getFileBase(String wsdlUrl)
printUsageException
public void printUsageException(String toolName,
BadUsageException ex)
getFileName
public String getFileName(String loc)
loadProperties
public Properties loadProperties(InputStream inputs)
loadProperties
public Properties loadProperties(String propertyFile)
getDefaultExcludedNamespaces
protected String[] getDefaultExcludedNamespaces(String excludeProps)
getParametersMap
protected Map<String,Object> getParametersMap(Set stringArrayKeys)
- get all parameters in a map
- Parameters:
stringArrayKeys,
- contains keys, whose value should be string array
Apache CXF