|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis.wsdl.toJava.JavaGeneratorFactory
public class JavaGeneratorFactory
This is Wsdl2java's implementation of the GeneratorFactory
Nested Class Summary | |
---|---|
protected class |
JavaGeneratorFactory.Writers
Class Writers |
Field Summary | |
---|---|
protected JavaGeneratorFactory.Writers |
bindingWriters
Return Wsdl2java's JavaBindingWriter object. |
static java.lang.String |
COMPLEX_TYPE_FAULT
Field COMPLEX_TYPE_FAULT |
protected Emitter |
emitter
Field emitter |
static java.lang.String |
EXCEPTION_CLASS_NAME
Field EXCEPTION_CLASS_NAME |
static java.lang.String |
EXCEPTION_DATA_TYPE
Field EXCEPTION_DATA_TYPE |
protected JavaGeneratorFactory.Writers |
serviceWriters
Return Wsdl2java's JavaServiceWriter object. |
protected SymbolTable |
symbolTable
Field symbolTable |
Constructor Summary | |
---|---|
JavaGeneratorFactory()
Default constructor. |
|
JavaGeneratorFactory(Emitter emitter)
Constructor JavaGeneratorFactory |
Method Summary | |
---|---|
protected void |
addBindingGenerators()
Method addBindingGenerators |
protected void |
addDefinitionGenerators()
Method addDefinitionGenerators |
void |
addGenerator(java.lang.Class wsdlClass,
java.lang.Class generator)
Method addGenerator |
protected void |
addMessageGenerators()
These addXXXGenerators are called by the constructor. |
protected void |
addPortTypeGenerators()
Method addPortTypeGenerators |
protected void |
addServiceGenerators()
Method addServiceGenerators |
protected void |
addTypeGenerators()
Method addTypeGenerators |
protected void |
constructSignatures(SymbolTable symbolTable)
Method constructSignatures |
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)
Method determineInterfaceNames |
void |
generatorPass(javax.wsdl.Definition def,
SymbolTable symbolTable)
Do the Wsdl2java generator pass: - resolve name clashes - construct signatures |
BaseTypeMapping |
getBaseTypeMapping()
Method getBaseTypeMapping |
protected java.lang.String |
getExceptionJavaNameHook(QName qname)
|
Generator |
getGenerator(javax.wsdl.Binding binding,
SymbolTable symbolTable)
Method getGenerator |
Generator |
getGenerator(javax.wsdl.Definition definition,
SymbolTable symbolTable)
Method getGenerator |
Generator |
getGenerator(javax.wsdl.Message message,
SymbolTable symbolTable)
Method getGenerator |
Generator |
getGenerator(javax.wsdl.PortType portType,
SymbolTable symbolTable)
Method getGenerator |
Generator |
getGenerator(javax.wsdl.Service service,
SymbolTable symbolTable)
Method getGenerator |
Generator |
getGenerator(TypeEntry type,
SymbolTable symbolTable)
Method getGenerator |
protected java.lang.String |
getOperationJavaNameHook(BindingEntry bEntry,
java.lang.String wsdlOpName)
|
protected java.lang.String |
getParameterTypeJavaNameHook(BindingEntry bEntry,
java.lang.String wsdlOpName,
int pos)
|
protected java.lang.String |
getPortJavaNameHook(java.lang.String portName)
|
protected java.lang.String |
getReturnTypeJavaNameHook(BindingEntry bEntry,
java.lang.String wsdlOpName)
|
protected java.lang.String |
getServiceEndpointInterfaceJavaNameHook(PortTypeEntry ptEntry,
BindingEntry bEntry)
|
protected java.lang.String |
getServiceInterfaceJavaNameHook(ServiceEntry sEntry)
|
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 boolean |
include(QName qName)
Determines whether the QName supplied should be generated by comparing the namespace for the QName against the included and excluded names. |
protected void |
javifyNames(SymbolTable symbolTable)
Fill in the names of each SymTabEntry with the javaified name. |
protected int |
javifyTypeEntryName(SymbolTable symbolTable,
TypeEntry entry,
java.util.HashMap anonQNames,
int uniqueNum)
Refactored to call recursively for JAX-RPC 1.1 spec 4.2.5. |
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)
Method setBaseTypeMapping |
void |
setEmitter(Emitter emitter)
Method setEmitter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Emitter emitter
protected SymbolTable symbolTable
public static java.lang.String COMPLEX_TYPE_FAULT
public static java.lang.String EXCEPTION_CLASS_NAME
public static java.lang.String EXCEPTION_DATA_TYPE
protected JavaGeneratorFactory.Writers bindingWriters
protected JavaGeneratorFactory.Writers serviceWriters
Constructor Detail |
---|
public JavaGeneratorFactory()
public JavaGeneratorFactory(Emitter emitter)
emitter
- Method Detail |
---|
public void setEmitter(Emitter emitter)
emitter
- protected void addMessageGenerators()
protected void addPortTypeGenerators()
protected void addBindingGenerators()
protected void addServiceGenerators()
protected void addTypeGenerators()
protected void addDefinitionGenerators()
public void generatorPass(javax.wsdl.Definition def, SymbolTable symbolTable)
generatorPass
in interface GeneratorFactory
def
- symbolTable
- public Generator getGenerator(javax.wsdl.Message message, SymbolTable symbolTable)
getGenerator
in interface GeneratorFactory
message
- symbolTable
-
public Generator getGenerator(javax.wsdl.PortType portType, SymbolTable symbolTable)
getGenerator
in interface GeneratorFactory
portType
- symbolTable
-
public Generator getGenerator(javax.wsdl.Binding binding, SymbolTable symbolTable)
getGenerator
in interface GeneratorFactory
binding
- symbolTable
-
public Generator getGenerator(javax.wsdl.Service service, SymbolTable symbolTable)
getGenerator
in interface GeneratorFactory
service
- symbolTable
-
public Generator getGenerator(TypeEntry type, SymbolTable symbolTable)
getGenerator
in interface GeneratorFactory
type
- symbolTable
-
public Generator getGenerator(javax.wsdl.Definition definition, SymbolTable symbolTable)
getGenerator
in interface GeneratorFactory
definition
- symbolTable
-
public void addGenerator(java.lang.Class wsdlClass, java.lang.Class generator)
wsdlClass
- generator
- protected void javifyNames(SymbolTable symbolTable)
symbolTable
- protected int javifyTypeEntryName(SymbolTable symbolTable, TypeEntry entry, java.util.HashMap anonQNames, int uniqueNum)
protected java.lang.String getExceptionJavaNameHook(QName qname)
protected void determineInterfaceNames(SymbolTable symbolTable)
symbolTable
- protected java.lang.String getServiceEndpointInterfaceJavaNameHook(PortTypeEntry ptEntry, BindingEntry bEntry)
protected java.lang.String getServiceInterfaceJavaNameHook(ServiceEntry sEntry)
protected java.lang.String getPortJavaNameHook(java.lang.String portName)
protected void resolveNameClashes(SymbolTable symbolTable)
symbolTable
- protected void setAllReferencesToTrue()
protected void ignoreNonSOAPBindings(SymbolTable symbolTable)
symbolTable
- protected void constructSignatures(SymbolTable symbolTable)
symbolTable
- protected java.lang.String getOperationJavaNameHook(BindingEntry bEntry, java.lang.String wsdlOpName)
protected java.lang.String getReturnTypeJavaNameHook(BindingEntry bEntry, java.lang.String wsdlOpName)
protected java.lang.String getParameterTypeJavaNameHook(BindingEntry bEntry, java.lang.String wsdlOpName, int pos)
protected void determineIfHoldersNeeded(SymbolTable symbolTable)
symbolTable
- public void setBaseTypeMapping(BaseTypeMapping btm)
setBaseTypeMapping
in interface GeneratorFactory
btm
- public BaseTypeMapping getBaseTypeMapping()
getBaseTypeMapping
in interface GeneratorFactory
protected boolean include(QName qName)
qName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |