org.apache.axis.wsdl
Interface WriterFactory

All Known Implementing Classes:
JavaWriterFactory

public interface WriterFactory

Writer and WriterFactory are part of the Writer framework. Folks who want to use the emitter to generate stuff from WSDL should do 3 things: 1. Write implementations of the Writer interface, one each for PortType, Binding, Service, and Type. These implementations generate the stuff for each of these WSDL types. 2. Write an implementation of the WriterFactory interface that returns instantiations of these Writer implementations as appropriate. 3. Implement a class with a main method (like Wsdl2java) that instantiates an Emitter and passes it the WriterFactory implementation


Method Summary
 Writer getWriter(javax.wsdl.Binding binding, SymbolTable symbolTable)
          Get a Writer implementation that will generate bindings for the given Binding.
 Writer getWriter(javax.wsdl.Definition definition, SymbolTable symbolTable)
          Get a Writer implementation that will generate anything that doesn't fit into the scope of any of the other writers.
 Writer getWriter(javax.wsdl.Message message, SymbolTable symbolTable)
          Get a Writer implementation that will generate bindings for the given Message.
 Writer getWriter(javax.wsdl.PortType portType, SymbolTable symbolTable)
          Get a Writer implementation that will generate bindings for the given PortType.
 Writer getWriter(javax.wsdl.Service service, SymbolTable symbolTable)
          Get a Writer implementation that will generate bindings for the given Service.
 Writer getWriter(Type type, SymbolTable symbolTable)
          Get a Writer implementation that will generate bindings for the given Type.
 void setEmitter(Emitter emitter)
          Provide the Emitter to the factory.
 void writerPass(javax.wsdl.Definition def, SymbolTable symbolTable)
          Allow the Writer extension to make a pass through the symbol table doing any pre-writing logic, like creating the Java names for each object and constructing signature strings.
 

Method Detail

writerPass

public void writerPass(javax.wsdl.Definition def,
                       SymbolTable symbolTable)
Allow the Writer extension to make a pass through the symbol table doing any pre-writing logic, like creating the Java names for each object and constructing signature strings.

getWriter

public Writer getWriter(javax.wsdl.Message message,
                        SymbolTable symbolTable)
Get a Writer implementation that will generate bindings for the given Message.

getWriter

public Writer getWriter(javax.wsdl.PortType portType,
                        SymbolTable symbolTable)
Get a Writer implementation that will generate bindings for the given PortType.

getWriter

public Writer getWriter(javax.wsdl.Binding binding,
                        SymbolTable symbolTable)
Get a Writer implementation that will generate bindings for the given Binding.

getWriter

public Writer getWriter(javax.wsdl.Service service,
                        SymbolTable symbolTable)
Get a Writer implementation that will generate bindings for the given Service.

getWriter

public Writer getWriter(Type type,
                        SymbolTable symbolTable)
Get a Writer implementation that will generate bindings for the given Type.

getWriter

public Writer getWriter(javax.wsdl.Definition definition,
                        SymbolTable symbolTable)
Get a Writer implementation that will generate anything that doesn't fit into the scope of any of the other writers.

setEmitter

public void setEmitter(Emitter emitter)
Provide the Emitter to the factory.


Copyright © 2001 Apache XML Project. All Rights Reserved.