org.apache.axis2.wsdl.writer
Class WOMtoWSDL11Writer

java.lang.Object
  extended byorg.apache.axis2.wsdl.writer.WOMtoWSDL11Writer
All Implemented Interfaces:
WOMWriter

public class WOMtoWSDL11Writer
extends Object
implements WOMWriter


Constructor Summary
WOMtoWSDL11Writer()
           
 
Method Summary
protected  void handleExtensibilityAttributes(List extAttributeList)
           
protected  void handleExtensibiltyElements(List extElementList)
           
 void setdefaultWSDLPrefix(String defaultWSDLPrefix)
           
 void setEncoding(String encoding)
           
protected  void writeBinding(org.apache.wsdl.WSDLDescription desc)
           
protected  void writebindingOperation(org.apache.wsdl.WSDLBindingOperation bindingOp)
           
protected  void writeEndDescripton(Writer outWriter)
           
protected  void writeExtensibilityAttribute(org.apache.wsdl.WSDLExtensibilityAttribute extAttribute)
           
protected  void writeExtensibilityElement(org.apache.wsdl.WSDLExtensibilityElement extElement)
           
protected  void writeImports(org.apache.wsdl.WSDLDescription desc)
           
protected  void writeMessages(org.apache.wsdl.WSDLDescription desc)
          Writes the messages.
protected  void writePolicyExtensibilityElement(org.apache.wsdl.extensions.PolicyExtensibilityElement policyExtensibilityElement)
           
protected  void writePorttypeOperations(org.apache.wsdl.WSDLInterface wsdlInterface)
          Writes the operation.
protected  void writePortTypes(org.apache.wsdl.WSDLDescription desc)
           
protected  void writeSOAPBindingExtensibilityElement(org.apache.wsdl.extensions.SOAPBinding soapBinding)
           
protected  void writeSOAPBodyExtensibilityElement(org.apache.wsdl.extensions.SOAPBody soapBody)
           
protected  void writeSOAPHeaderExtensibilityElement(org.apache.wsdl.extensions.SOAPHeader soapHeader)
           
protected  void writeSOAPOpextensibilityElement(org.apache.wsdl.extensions.SOAPOperation soapop)
           
protected  void writeStartDescripton(org.apache.wsdl.WSDLDescription desc, XMLStreamWriter writer)
           
protected  void writeTypes(org.apache.wsdl.WSDLDescription desc)
          Writes port types.
 void writeWOM(org.apache.wsdl.WSDLDescription wsdlDescription, OutputStream out)
          Writes a WSDLDescription directly.
 void writeWOM(WSDLVersionWrapper wsdlWrapper, OutputStream out)
          Writes a WOM to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WOMtoWSDL11Writer

public WOMtoWSDL11Writer()
Method Detail

setEncoding

public void setEncoding(String encoding)
Specified by:
setEncoding in interface WOMWriter

setdefaultWSDLPrefix

public void setdefaultWSDLPrefix(String defaultWSDLPrefix)
Specified by:
setdefaultWSDLPrefix in interface WOMWriter

writeWOM

public void writeWOM(WSDLVersionWrapper wsdlWrapper,
                     OutputStream out)
              throws WriterException
Description copied from interface: WOMWriter
Writes a WOM to the given output stream.

Specified by:
writeWOM in interface WOMWriter
Parameters:
wsdlWrapper -
out -
Throws:
WriterException
See Also:
WOMWriter.writeWOM(org.apache.axis2.wsdl.WSDLVersionWrapper, java.io.OutputStream)

writeWOM

public void writeWOM(org.apache.wsdl.WSDLDescription wsdlDescription,
                     OutputStream out)
              throws WriterException,
                     XMLStreamException
Description copied from interface: WOMWriter
Writes a WSDLDescription directly. The version wrapper may not be available in some instances and the user may need to serialize the WSDL Description directly .

Specified by:
writeWOM in interface WOMWriter
Parameters:
wsdlDescription -
out -
Throws:
WriterException
XMLStreamException
See Also:
WOMWriter.writeWOM(org.apache.wsdl.WSDLDescription, java.io.OutputStream)

writeStartDescripton

protected void writeStartDescripton(org.apache.wsdl.WSDLDescription desc,
                                    XMLStreamWriter writer)
                             throws IOException,
                                    XMLStreamException
Parameters:
desc -
Throws:
IOException
XMLStreamException

writeMessages

protected void writeMessages(org.apache.wsdl.WSDLDescription desc)
                      throws XMLStreamException
Writes the messages. This is somewhat tricky when the message names and parts have to be guessed.

Parameters:
desc -
Throws:
XMLStreamException

writeEndDescripton

protected void writeEndDescripton(Writer outWriter)
                           throws IOException
Parameters:
outWriter -
Throws:
IOException

writeImports

protected void writeImports(org.apache.wsdl.WSDLDescription desc)
                     throws IOException,
                            XMLStreamException
Parameters:
desc -
Throws:
IOException
XMLStreamException

writeTypes

protected void writeTypes(org.apache.wsdl.WSDLDescription desc)
                   throws IOException,
                          XMLStreamException
Writes port types.

Parameters:
desc -
Throws:
IOException
XMLStreamException

writePortTypes

protected void writePortTypes(org.apache.wsdl.WSDLDescription desc)
                       throws XMLStreamException,
                              IOException
Parameters:
desc -
Throws:
XMLStreamException
IOException

writePorttypeOperations

protected void writePorttypeOperations(org.apache.wsdl.WSDLInterface wsdlInterface)
                                throws XMLStreamException,
                                       IOException
Writes the operation.

Parameters:
wsdlInterface -
Throws:
XMLStreamException
IOException

writeBinding

protected void writeBinding(org.apache.wsdl.WSDLDescription desc)
                     throws XMLStreamException,
                            IOException
Parameters:
desc -
Throws:
IOException
XMLStreamException

writebindingOperation

protected void writebindingOperation(org.apache.wsdl.WSDLBindingOperation bindingOp)
                              throws XMLStreamException,
                                     IOException
Throws:
XMLStreamException
IOException

handleExtensibilityAttributes

protected void handleExtensibilityAttributes(List extAttributeList)
                                      throws XMLStreamException
Throws:
XMLStreamException

handleExtensibiltyElements

protected void handleExtensibiltyElements(List extElementList)
                                   throws XMLStreamException,
                                          IOException
Throws:
XMLStreamException
IOException

writeExtensibilityAttribute

protected void writeExtensibilityAttribute(org.apache.wsdl.WSDLExtensibilityAttribute extAttribute)
                                    throws XMLStreamException
Throws:
XMLStreamException

writeExtensibilityElement

protected void writeExtensibilityElement(org.apache.wsdl.WSDLExtensibilityElement extElement)
                                  throws IOException,
                                         XMLStreamException
Parameters:
extElement -
Throws:
IOException
XMLStreamException

writeSOAPBindingExtensibilityElement

protected void writeSOAPBindingExtensibilityElement(org.apache.wsdl.extensions.SOAPBinding soapBinding)
                                             throws XMLStreamException
Throws:
XMLStreamException

writeSOAPBodyExtensibilityElement

protected void writeSOAPBodyExtensibilityElement(org.apache.wsdl.extensions.SOAPBody soapBody)
                                          throws IOException,
                                                 XMLStreamException
Throws:
IOException
XMLStreamException

writeSOAPHeaderExtensibilityElement

protected void writeSOAPHeaderExtensibilityElement(org.apache.wsdl.extensions.SOAPHeader soapHeader)
                                            throws XMLStreamException
Throws:
XMLStreamException

writeSOAPOpextensibilityElement

protected void writeSOAPOpextensibilityElement(org.apache.wsdl.extensions.SOAPOperation soapop)
                                        throws IOException,
                                               XMLStreamException
Throws:
IOException
XMLStreamException

writePolicyExtensibilityElement

protected void writePolicyExtensibilityElement(org.apache.wsdl.extensions.PolicyExtensibilityElement policyExtensibilityElement)
                                        throws XMLStreamException
Throws:
XMLStreamException