|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
public void writerPass(javax.wsdl.Definition def, SymbolTable symbolTable)
public Writer getWriter(javax.wsdl.Message message, SymbolTable symbolTable)
public Writer getWriter(javax.wsdl.PortType portType, SymbolTable symbolTable)
public Writer getWriter(javax.wsdl.Binding binding, SymbolTable symbolTable)
public Writer getWriter(javax.wsdl.Service service, SymbolTable symbolTable)
public Writer getWriter(Type type, SymbolTable symbolTable)
public Writer getWriter(javax.wsdl.Definition definition, SymbolTable symbolTable)
public void setEmitter(Emitter emitter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |