Package 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
Common processing for the CXF tools. Processes common options.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
AbstractToolContainer.GenericOutputStream -
Field Summary
FieldsFields inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
context, err, out, toolspec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckParams(ErrorVisitor err) Check command-line parameters for validity.protected ClassCollectorvoidexecute(boolean exitOnFinish) protected String[]getDefaultExcludedNamespaces(String excludeProps) getFileBase(String wsdlUrl) getFileName(String loc) getParametersMap(Set<String> stringArrayKeys) get all parameters in a mapgetUsage()booleanbooleanloadProperties(InputStream inputs) loadProperties(String propertyFile) voidvoidvoidprintUsageException(String toolName, BadUsageException ex) 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
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractCXFToolContainer
- Throws:
Exception
-
-
Method Details
-
hasInfoOption
- Throws:
ToolException
-
execute
- Specified by:
executein interfaceToolContainer- Overrides:
executein classAbstractToolContainer- Throws:
ToolException
-
checkParams
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
-
getUsage
-
outputVersion
public void outputVersion() -
outputFullCommandLine
public void outputFullCommandLine() -
getFileBase
-
printUsageException
-
getFileName
-
loadProperties
-
loadProperties
-
getDefaultExcludedNamespaces
-
getParametersMap
get all parameters in a map- Parameters:
stringArrayKeys- contains keys, whose value should be string array
-
createClassCollector
-