org.apache.axis.wsdl.toJava
public class Emitter extends Parser
Field Summary | |
---|---|
protected BaseTypeMapping | baseTypeMapping Field baseTypeMapping |
static String | DEFAULT_NSTOPKG_FILE Field DEFAULT_NSTOPKG_FILE |
protected HashMap | namespaceMap Field namespaceMap |
protected Namespaces | namespaces Field namespaces |
protected List | nsExcludes Field nsIncludes - defines a list of namespaces to specifically
exclude from generated source code. |
protected List | nsIncludes Field nsIncludes - defines a list of namespaces to specifically
include in the generated source code. |
protected String | NStoPkgFilename Field NStoPkgFilename |
protected List | properties Field properties - defines a set of general purpose properties
that can be used by custom JavaGeneratorFactories. |
protected String | typeMappingVersion Field typeMappingVersion |
Constructor Summary | |
---|---|
Emitter()
Default constructor. |
Method Summary | |
---|---|
void | debug(boolean value)
Turn on/off debug messages.
|
void | deploySkeleton(boolean value)
Turn on/off server skeleton deploy
|
protected boolean | doesExist(String className)
Check if the className exists.
|
void | emit(String uri)
Call this method if you have a uri for the WSDL document
|
void | emit(String context, Document doc)
Call this method if your WSDL document has already been
parsed as an XML DOM document.
|
void | generateAll(boolean all) |
void | generateImports(boolean generateImports)
Turn on/off generation of elements from imported files.
|
void | generateServerSide(boolean value)
Turn on/off server-side binding generation
|
void | generateTestCase(boolean value)
Turn on/off test case creation
|
boolean | getDebug()
Return the status of the debug switch.
|
TypeMapping | getDefaultTypeMapping()
Returns the default TypeMapping used by the service
|
boolean | getDeploySkeleton()
Indicate if we should be deploying skeleton or implementation
|
List | getGeneratedClassNames()
This method returns a list of all generated class names.
|
GeneratedFileInfo | getGeneratedFileInfo()
Returns an object which contains of information on all generated files
including the class name, filename and a type string.
|
List | getGeneratedFileNames()
This method returns a list of all generated file names.
|
boolean | getGenerateServerSide()
Indicate if we should be emitting server side code and deploy/undeploy
|
boolean | getHelperGeneration()
Indicate if we should be generating Helper classes
|
String | getImplementationClassName()
Get an implementation classname to use instead of the default. |
String | getJavaName(QName qName)
Convert the specified QName into a full Java Name.
|
protected String | getJavaNameHook(QName qname) |
String | getJavaVariableName(QName typeQName, QName xmlName, boolean isElement) |
protected String | getJavaVariableNameHook(QName typeQName, QName xmlName, boolean isElement) |
List | getNamespaceExcludes() Returns the list of excludes to specifically exclude
from the generated source. |
List | getNamespaceIncludes() Returns the list of namespaces specifically excluded
from the generated code. |
HashMap | getNamespaceMap()
Get the map of namespace -> Java package names
|
Namespaces | getNamespaces()
Method getNamespaces
|
String | getOutputDir()
Get the output directory to use for emitted source files
|
String | getPackage(String namespace)
Get the Package name for the specified namespace
|
String | getPackage(QName qName)
Get the Package name for the specified QName
|
String | getPackageName()
Get global package name to use instead of mapping namespaces
|
List | getProperties() Gets the list of extension properties for custom
JavaGeneratorFactories. |
HashMap | getQName2ClassMap()
Get the type qname to java class map |
Scope | getScope()
Get the scope for the deploy.xml file.
|
ServiceDesc | getServiceDesc()
Retruns the SericeDesc object |
String | getTypeMappingVersion()
Get the typemapping version |
boolean | getVerbose()
Return the status of the verbose switch
|
GeneratorFactory | getWriterFactory()
Get the GeneratorFactory.
|
boolean | isAllowInvalidURL() |
boolean | isAllWanted()
Method isAllWanted
|
boolean | isBuildFileWanted()
get the build file genaeration state |
boolean | isDeploy()
Returns the deploy mode flag |
boolean | isHelperWanted()
Indicate if we should be generating Helper classes
|
boolean | isServerSide()
Indicate if we should be emitting server side code and deploy/undeploy
|
boolean | isSkeletonWanted()
Indicate if we should be deploying skeleton or implementation
|
boolean | isTestCaseWanted()
Method isTestCaseWanted
|
boolean | isTypeCollisionProtection()
Get the type collision protection setting |
void | run(String wsdlURL)
Emit appropriate Java files for a WSDL at a given URL.
|
void | run(String context, Document doc)
Call this method if your WSDL document has already been
parsed as an XML DOM document.
|
protected void | sanityCheck(SymbolTable symbolTable)
Method sanityCheck
|
void | setAllowInvalidURL(boolean allowInvalidURL) |
void | setAllWanted(boolean all)
By default, code is generated only for referenced elements.
|
void | setBuildFileWanted(boolean value)
turn the build file genaration ON |
void | setDefaultTypeMapping(TypeMapping defaultTM)
Sets the default TypeMapping used by the service
|
void | setDeploy(boolean isDeploy)
Sets the deploy mode flag |
void | setFactory(String factory)
Sets the WriterFactory Class to use
|
void | setHelperGeneration(boolean value)
Turn on/off Helper class generation
|
void | setHelperWanted(boolean value)
Turn on/off Helper class generation
|
void | setImplementationClassName(String implementationClassName)
Set an implementation classname to use instead of the default.
|
void | setNamespaceExcludes(List nsExcludes) Sets the list of namespaces to specifically exclude
from the generated source. |
void | setNamespaceIncludes(List nsIncludes) Sets the list of namespaces to specifically include
in the generated code. |
void | setNamespaceMap(HashMap map)
Set a map of namespace -> Java package names
|
void | setNStoPkg(String NStoPkgFilename)
Set the NStoPkg mappings filename.
|
void | setOutputDir(String outputDir)
Set the output directory to use in emitted source files
|
void | setPackageName(String packageName)
Set a global package name to use instead of mapping namespaces
|
void | setProperties(List properties) Sets the list of extension properties for custom
JavaGeneratorFactories. |
void | setQName2ClassMap(HashMap map)
Set the type qname to java class map |
void | setScope(Scope scope)
Set the scope for the deploy.xml file.
|
void | setServerSide(boolean value)
Turn on/off server skeleton creation
|
void | setServiceDesc(ServiceDesc serviceDesc)
Sets the ServicdDesc object |
void | setSkeletonWanted(boolean value)
Turn on/off server skeleton deploy
|
void | setTestCaseWanted(boolean value)
Turn on/off test case creation
|
void | setTypeCollisionProtection(boolean value)
Enable/disable type collision protection |
void | setTypeMappingVersion(String typeMappingVersion)
Method setTypeMappingVersion
|
void | setWrapArrays(boolean wrapArrays) |
void | verbose(boolean value)
Turn on/off verbose messages
|
Deprecated: Use setDebug(value)
Turn on/off debug messages.Parameters: value
Deprecated: Use setSkeletonWanted(value)
Turn on/off server skeleton deployParameters: value
Parameters: className className to check
Returns: true if exists, false if not
Deprecated: Call run(uri) instead.
Call this method if you have a uri for the WSDL documentParameters: uri wsdlURI the location of the WSDL file.
Throws: Exception
Deprecated: Call run(context, doc) instead.
Call this method if your WSDL document has already been parsed as an XML DOM document.Parameters: context context This is directory context for the Document. If the Document were from file "/x/y/z.wsdl" then the context could be "/x/y" (even "/x/y/z.wsdl" would work). If context is null, then the context becomes the current directory. doc doc This is the XML Document containing the WSDL.
Throws: IOException SAXException WSDLException ParserConfigurationException
Deprecated: Use setAllWanted(all)
Parameters: all
Deprecated: Use setImports(generateImports)
Turn on/off generation of elements from imported files.Parameters: generateImports
Deprecated: Use setServerSide(value)
Turn on/off server-side binding generationParameters: value
Deprecated: Use setTestCaseWanted()
Turn on/off test case creationParameters: value
Deprecated: Use isDebug()
Return the status of the debug switch.Returns:
TypeMapping
used by the service
Returns: the default TypeMapping
used by the service
Deprecated: Use isSkeletonWanted()
Indicate if we should be deploying skeleton or implementationReturns:
Returns:
Returns: An org.apache.axis.wsdl.toJava.GeneratedFileInfo object
See Also: GeneratedFileInfo
Returns:
Deprecated: Use isServerSide()
Indicate if we should be emitting server side code and deploy/undeployReturns:
Deprecated: Use isHelperWanted()
Indicate if we should be generating Helper classesReturns:
Returns:
Parameters: qName
Returns:
Parameters: typeQName QName for containing xml type xmlName QName for element
Returns:
Returns:
Returns:
Returns:
Parameters: namespace
Returns:
Parameters: qName
Returns:
Returns:
Returns: the type qname to java class map
Returns:
Returns:
Deprecated: Use isVerbose()
Return the status of the verbose switchReturns:
Deprecated: Call getFactory instead. This doesn't return a WriterFactory, it returns a GeneratorFactory.
Get the GeneratorFactory.Returns:
Returns: Returns the allowInvalidURL.
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Returns:
Parameters: wsdlURL
Throws: Exception
Parameters: context context This is directory context for the Document. If the Document were from file "/x/y/z.wsdl" then the context could be "/x/y" (even "/x/y/z.wsdl" would work). If context is null, then the context becomes the current directory. doc doc This is the XML Document containing the WSDL.
Throws: IOException SAXException WSDLException ParserConfigurationException
Parameters: symbolTable
Parameters: allowInvalidURL The allowInvalidURL to set.
Parameters: all
Parameters: value
TypeMapping
used by the service
Parameters: defaultTM the default TypeMapping
used by the service
Parameters: isDeploy deploy mode flag
WriterFactory Class
to use
Parameters: factory the name of the factory Class
Deprecated: Use setHelperWanted(value)
Turn on/off Helper class generationParameters: value
Parameters: value
Parameters: implementationClassName
Parameters: map
Parameters: NStoPkgFilename
Parameters: outputDir
Parameters: packageName
Parameters: map a type qname to javaclass map (from Java2Wsdl emitter)
Parameters: scope One of 'null', Scope.APPLICATION, Scope.REQUEST, Scope.SESSION. Anything else is equivalent to 'null' null and no explicit scope tag will appear in deploy.xml.
Parameters: value
Parameters: serviceDesc ServiceDesc to set
Parameters: value
Parameters: value
Parameters: value
Parameters: typeMappingVersion
Deprecated: Use setVerbose(value)
Turn on/off verbose messagesParameters: value