Apache CXF API

org.apache.cxf.tools.wsdlto
Class WSDLToJavaContainer

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

public class WSDLToJavaContainer
extends AbstractCXFToolContainer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
AbstractToolContainer.GenericOutputStream
 
Field Summary
protected static Logger LOG
           
 
Fields inherited from class org.apache.cxf.tools.common.toolspec.AbstractToolContainer
context, err, out, toolspec
 
Constructor Summary
WSDLToJavaContainer(String name, ToolSpec toolspec)
           
 
Method Summary
 void buildToolContext()
           
 void checkParams(ErrorVisitor errors)
          Check command-line parameters for validity.
 void execute()
           
 void execute(boolean exitOnFinish)
           
 void generateTypes()
           
 Set<String> getArrayKeys()
           
protected static InputStream getResourceAsStream(String file)
           
 QName getServiceQName(javax.wsdl.Definition def)
           
 List<ServiceValidator> getServiceValidators()
           
 WSDLConstants.WSDLVersion getWSDLVersion()
           
 void loadDefaultNSPackageMapping(ToolContext env)
           
 boolean passthrough()
           
 void removeExcludeFiles()
           
 void setAntProperties(ToolContext env)
           
 void setExcludePackageAndNamespaces(ToolContext env)
           
protected  void setLibraryReferences(ToolContext env)
           
 void setPackageAndNamespaces(ToolContext env)
           
 void validate(ServiceInfo service)
           
 void validate(ToolContext env)
           
 
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
 

Field Detail

LOG

protected static final Logger LOG
Constructor Detail

WSDLToJavaContainer

public WSDLToJavaContainer(String name,
                           ToolSpec toolspec)
                    throws Exception
Throws:
Exception
Method Detail

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 API

Apache CXF