站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 jaxrpc API Documentation 英文版文档

JavaGeneratorFactory (JAXRPC API) - JBoss 3.2.7 jaxrpc API Documentation 英文版文档


org.apache.axis.wsdl.toJava
Class JavaGeneratorFactory

java.lang.Object
  extended byorg.apache.axis.wsdl.toJava.JavaGeneratorFactory
All Implemented Interfaces:
GeneratorFactory

public class JavaGeneratorFactory
extends Object
implements GeneratorFactory

This is Wsdl2java's implementation of the GeneratorFactory


Nested Class Summary
protected  class JavaGeneratorFactory.Writers
           
 
Field Summary
protected  JavaGeneratorFactory.Writers bindingWriters
          Return Wsdl2java's JavaBindingWriter object.
static String COMPLEX_TYPE_FAULT
           
protected  Emitter emitter
           
static String EXCEPTION_CLASS_NAME
           
static String EXCEPTION_DATA_TYPE
           
protected  JavaGeneratorFactory.Writers serviceWriters
          Return Wsdl2java's JavaServiceWriter object.
protected  SymbolTable symbolTable
           
 
Constructor Summary
JavaGeneratorFactory()
          Default constructor.
JavaGeneratorFactory(Emitter emitter)
           
 
Method Summary
protected  void addBindingGenerators()
           
protected  void addDefinitionGenerators()
           
 void addGenerator(Class wsdlClass, Class generator)
           
protected  void addMessageGenerators()
          These addXXXGenerators are called by the constructor.
protected  void addPortTypeGenerators()
           
protected  void addServiceGenerators()
           
protected  void addTypeGenerators()
           
protected  void constructSignatures(SymbolTable symbolTable)
           
protected  void determineIfHoldersNeeded(SymbolTable symbolTable)
          Find all inout/out parameters and add a flag to the Type of that parameter saying a holder is needed.
protected  void determineInterfaceNames(SymbolTable symbolTable)
           
 void generatorPass(javax.wsdl.Definition def, SymbolTable symbolTable)
          Do the Wsdl2java generator pass: - resolve name clashes - construct signatures
 BaseTypeMapping getBaseTypeMapping()
           
 Generator getGenerator(javax.wsdl.Binding binding, SymbolTable symbolTable)
          Get a Generator implementation that will generate bindings for the given Binding.
 Generator getGenerator(javax.wsdl.Definition definition, SymbolTable symbolTable)
          Get a Generator implementation that will generate anything that doesn't fit into the scope of any of the other Generators.
 Generator getGenerator(javax.wsdl.Message message, SymbolTable symbolTable)
          Get a Generator implementation that will generate bindings for the given Message.
 Generator getGenerator(javax.wsdl.PortType portType, SymbolTable symbolTable)
          Get a Generator implementation that will generate bindings for the given PortType.
 Generator getGenerator(javax.wsdl.Service service, SymbolTable symbolTable)
          Get a Generator implementation that will generate bindings for the given Service.
 Generator getGenerator(TypeEntry type, SymbolTable symbolTable)
          Get a Generator implementation that will generate bindings for the given Type.
protected  void ignoreNonSOAPBindings(SymbolTable symbolTable)
          If a binding's type is not TYPE_SOAP, then we don't use that binding or that binding's portType.
protected  void javifyNames(SymbolTable symbolTable)
          Fill in the names of each SymTabEntry with the javaified name.
protected  void resolveNameClashes(SymbolTable symbolTable)
          Messages, PortTypes, Bindings, and Services can share the same name.
protected  void setAllReferencesToTrue()
          The --all flag is set on the command line (or generateAll(true) is called on WSDL2Java).
 void setBaseTypeMapping(BaseTypeMapping btm)
          Get TypeMapping to use for translating QNames to base types
 void setEmitter(Emitter emitter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emitter

protected Emitter emitter

symbolTable

protected SymbolTable symbolTable

COMPLEX_TYPE_FAULT

public static String COMPLEX_TYPE_FAULT

EXCEPTION_CLASS_NAME

public static String EXCEPTION_CLASS_NAME

EXCEPTION_DATA_TYPE

public static String EXCEPTION_DATA_TYPE

bindingWriters

protected JavaGeneratorFactory.Writers bindingWriters
Return Wsdl2java's JavaBindingWriter object.


serviceWriters

protected JavaGeneratorFactory.Writers serviceWriters
Return Wsdl2java's JavaServiceWriter object.

Constructor Detail

JavaGeneratorFactory

public JavaGeneratorFactory()
Default constructor. Note that this class is unusable until setEmitter is called.


JavaGeneratorFactory

public JavaGeneratorFactory(Emitter emitter)
Method Detail

setEmitter

public void setEmitter(Emitter emitter)

addMessageGenerators

protected void addMessageGenerators()
These addXXXGenerators are called by the constructor. If an extender of this factory wants to CHANGE the set of generators that are called per WSDL construct, they should override these addXXXGenerators methods. If all an extender wants to do is ADD a generator, then the extension should simply call addGenerator. (NOTE: It doesn't quite work this way, yet. Only the Definition generators fit this model at this point in time.)


addPortTypeGenerators

protected void addPortTypeGenerators()

addBindingGenerators

protected void addBindingGenerators()

addServiceGenerators

protected void addServiceGenerators()

addTypeGenerators

protected void addTypeGenerators()

addDefinitionGenerators

protected void addDefinitionGenerators()

generatorPass

public void generatorPass(javax.wsdl.Definition def,
                          SymbolTable symbolTable)
Do the Wsdl2java generator pass: - resolve name clashes - construct signatures

Specified by:
generatorPass in interface GeneratorFactory

getGenerator

public Generator getGenerator(javax.wsdl.Message message,
                              SymbolTable symbolTable)
Description copied from interface: GeneratorFactory
Get a Generator implementation that will generate bindings for the given Message.

Specified by:
getGenerator in interface GeneratorFactory

getGenerator

public Generator getGenerator(javax.wsdl.PortType portType,
                              SymbolTable symbolTable)
Description copied from interface: GeneratorFactory
Get a Generator implementation that will generate bindings for the given PortType.

Specified by:
getGenerator in interface GeneratorFactory

getGenerator

public Generator getGenerator(javax.wsdl.Binding binding,
                              SymbolTable symbolTable)
Description copied from interface: GeneratorFactory
Get a Generator implementation that will generate bindings for the given Binding.

Specified by:
getGenerator in interface GeneratorFactory

getGenerator

public Generator getGenerator(javax.wsdl.Service service,
                              SymbolTable symbolTable)
Description copied from interface: GeneratorFactory
Get a Generator implementation that will generate bindings for the given Service.

Specified by:
getGenerator in interface GeneratorFactory

getGenerator

public Generator getGenerator(TypeEntry type,
                              SymbolTable symbolTable)
Description copied from interface: GeneratorFactory
Get a Generator implementation that will generate bindings for the given Type.

Specified by:
getGenerator in interface GeneratorFactory

getGenerator

public Generator getGenerator(javax.wsdl.Definition definition,
                              SymbolTable symbolTable)
Description copied from interface: GeneratorFactory
Get a Generator implementation that will generate anything that doesn't fit into the scope of any of the other Generators.

Specified by:
getGenerator in interface GeneratorFactory

addGenerator

public void addGenerator(Class wsdlClass,
                         Class generator)

javifyNames

protected void javifyNames(SymbolTable symbolTable)
Fill in the names of each SymTabEntry with the javaified name. Note: This method also ensures that anonymous types are given unique java type names.


determineInterfaceNames

protected void determineInterfaceNames(SymbolTable symbolTable)

resolveNameClashes

protected void resolveNameClashes(SymbolTable symbolTable)
Messages, PortTypes, Bindings, and Services can share the same name. If they do in this Definition, force their names to be suffixed with _PortType and _Service, respectively.


setAllReferencesToTrue

protected void setAllReferencesToTrue()
The --all flag is set on the command line (or generateAll(true) is called on WSDL2Java). Set all symbols as referenced (except nonSOAP bindings which we don't know how to deal with).


ignoreNonSOAPBindings

protected void ignoreNonSOAPBindings(SymbolTable symbolTable)
If a binding's type is not TYPE_SOAP, then we don't use that binding or that binding's portType.


constructSignatures

protected void constructSignatures(SymbolTable symbolTable)

determineIfHoldersNeeded

protected void determineIfHoldersNeeded(SymbolTable symbolTable)
Find all inout/out parameters and add a flag to the Type of that parameter saying a holder is needed.


setBaseTypeMapping

public void setBaseTypeMapping(BaseTypeMapping btm)
Description copied from interface: GeneratorFactory
Get TypeMapping to use for translating QNames to base types

Specified by:
setBaseTypeMapping in interface GeneratorFactory

getBaseTypeMapping

public BaseTypeMapping getBaseTypeMapping()
Specified by:
getBaseTypeMapping in interface GeneratorFactory


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.