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
Fields inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
context, err, out, toolspec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkParams
(ErrorVisitor err) Check command-line parameters for validity.protected ClassCollector
void
execute
(boolean exitOnFinish) protected String[]
getDefaultExcludedNamespaces
(String excludeProps) getFileBase
(String wsdlUrl) getFileName
(String loc) getParametersMap
(Set<String> stringArrayKeys) get all parameters in a mapgetUsage()
boolean
boolean
loadProperties
(InputStream inputs) loadProperties
(String propertyFile) void
void
void
printUsageException
(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:
execute
in interfaceToolContainer
- Overrides:
execute
in 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
-