org.apache.cxf.tools.wsdlto
Class WSDLToJavaContainer
java.lang.Object
org.apache.cxf.tools.common.toolspec.AbstractToolContainer
org.apache.cxf.tools.common.AbstractCXFToolContainer
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer
- All Implemented Interfaces:
- ToolContainer
- Direct Known Subclasses:
- JavaScriptContainer, JAXWSContainer
public class WSDLToJavaContainer
- extends AbstractCXFToolContainer
Methods inherited from class org.apache.cxf.tools.common.AbstractCXFToolContainer |
createClassCollector, getDefaultExcludedNamespaces, getFileBase, getFileName, getParametersMap, getToolName, getUsage, hasInfoOption, isVerboseOn, loadProperties, loadProperties, outputFullCommandLine, outputVersion, printUsageException |
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
WSDLToJavaContainer
public WSDLToJavaContainer(String name,
ToolSpec toolspec)
throws Exception
- Throws:
Exception
getArrayKeys
public Set<String> getArrayKeys()
getWSDLVersion
public WSDLConstants.WSDLVersion getWSDLVersion()
execute
public void execute()
throws ToolException
- Throws:
ToolException
execute
public void execute(boolean exitOnFinish)
throws ToolException
- Specified by:
execute
in interface ToolContainer
- Overrides:
execute
in class AbstractCXFToolContainer
- Throws:
ToolException
getServiceQName
public QName getServiceQName(javax.wsdl.Definition def)
loadDefaultNSPackageMapping
public void loadDefaultNSPackageMapping(ToolContext env)
setExcludePackageAndNamespaces
public void setExcludePackageAndNamespaces(ToolContext env)
setPackageAndNamespaces
public void setPackageAndNamespaces(ToolContext env)
validate
public void validate(ToolContext env)
throws ToolException
- Throws:
ToolException
setAntProperties
public void setAntProperties(ToolContext env)
setLibraryReferences
protected void setLibraryReferences(ToolContext env)
buildToolContext
public void buildToolContext()
getResourceAsStream
protected static InputStream getResourceAsStream(String file)
checkParams
public void checkParams(ErrorVisitor errors)
throws ToolException
- Description copied from class:
AbstractCXFToolContainer
- Check command-line parameters for validity. Since subclasses delegate down to here,
this cannot complain about unwanted options.
- Overrides:
checkParams
in class AbstractCXFToolContainer
- Parameters:
errors
- place to report errors.
- Throws:
ToolException
- for impossible options.
removeExcludeFiles
public void removeExcludeFiles()
throws IOException
- Throws:
IOException
passthrough
public boolean passthrough()
generateTypes
public void generateTypes()
throws ToolException
- Throws:
ToolException
validate
public void validate(ServiceInfo service)
throws ToolException
- Throws:
ToolException
getServiceValidators
public List<ServiceValidator> getServiceValidators()
Apache CXF