org.codehaus.xfire.wsdl11.builder
Class WSDLBuilder

java.lang.Object
  extended by org.codehaus.xfire.wsdl.AbstractWSDL
      extended by org.codehaus.xfire.wsdl11.builder.WSDLBuilder
All Implemented Interfaces:
WSDLWriter

public class WSDLBuilder
extends AbstractWSDL
implements WSDLWriter

WSDL

Author:
Dan Diephouse, Tomasz Sztelak

Field Summary
static java.lang.String OVERRIDING_TYPES
           
 
Fields inherited from class org.codehaus.xfire.wsdl.AbstractWSDL
CLEAN_IMPORTS, GENERATE_IMPORTS, REMOVE_ALL_IMPORTS, typeMap, XSD_NS
 
Fields inherited from interface org.codehaus.xfire.wsdl.WSDLWriter
WSDL11_NS, WSDL11_SOAP_NS
 
Constructor Summary
WSDLBuilder(Service service, TransportManager transportManager)
           
 
Method Summary
 void addNamespace(java.lang.String prefix, java.lang.String uri)
           
 javax.wsdl.PortType createAbstractInterface()
           
 void createConcreteInterface(javax.wsdl.PortType portType)
           
 javax.wsdl.Part createDocLitPart(javax.xml.namespace.QName pName, java.lang.Class clazz, SchemaType type)
          Creates a wsdl:message part and a global schema element for it if it is abstract.
protected  javax.xml.namespace.QName createDocumentType(MessageInfo message, javax.wsdl.Part part, java.lang.String opName)
           
 void createInputParts(javax.wsdl.Message req, OperationInfo op)
           
 javax.wsdl.Operation createOperation(OperationInfo op, javax.wsdl.Message req, javax.wsdl.Message res, java.util.List faultMessages)
           
 void createOutputParts(javax.wsdl.Message req, OperationInfo op)
           
 javax.wsdl.Part createPart(MessagePartInfo part)
           
 javax.wsdl.Part createRpcLitPart(javax.xml.namespace.QName pName, java.lang.Class clazz, SchemaType type)
          Creates a wsdl:message part without creating a global schema element.
protected  org.jdom.Element createSequence(org.jdom.Element complex)
           
protected  void createWrappedInputParts(javax.wsdl.Message req, OperationInfo op)
           
protected  void createWrappedOutputParts(javax.wsdl.Message req, OperationInfo op)
           
 javax.wsdl.Definition getDefinition()
           
 TransportManager getTransportManager()
           
 java.util.List getWSDLBuilderExtensions()
           
 void setDefinition(javax.wsdl.Definition definition)
           
 void setTransportManager(TransportManager transportManager)
           
 void setWSDLBuilderExtensions(java.util.List extensions)
           
 void write(java.io.OutputStream out)
          Write the WSDL to an OutputStream.
protected  void writeComplexTypes()
           
protected  void writeParametersSchema(java.util.Collection params, org.jdom.Element sequence)
           
 
Methods inherited from class org.codehaus.xfire.wsdl.AbstractWSDL
addDependency, addNamespaceImport, addSchema, addSchemas, cleanImport, cleanImports, cleanImports, createSchemaType, getImport, getNamespacePrefix, getSchemaTypes, getService, getTargetNamespace, hasDependency, hasSchema, initialize, isSchemaLocationRemoved, removeAllImports, removeImports, setSchema, setSchemaLocationRemoved, setSchemaTypes, setService, updateImports, writeImports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OVERRIDING_TYPES

public static final java.lang.String OVERRIDING_TYPES
See Also:
Constant Field Values
Constructor Detail

WSDLBuilder

public WSDLBuilder(Service service,
                   TransportManager transportManager)
            throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException
Method Detail

getTransportManager

public TransportManager getTransportManager()

setTransportManager

public void setTransportManager(TransportManager transportManager)

writeComplexTypes

protected void writeComplexTypes()
Specified by:
writeComplexTypes in class AbstractWSDL

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Description copied from interface: WSDLWriter
Write the WSDL to an OutputStream.

Specified by:
write in interface WSDLWriter
Specified by:
write in class AbstractWSDL
Parameters:
out - The OutputStream.
Throws:
java.io.IOException

createAbstractInterface

public javax.wsdl.PortType createAbstractInterface()
                                            throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

createConcreteInterface

public void createConcreteInterface(javax.wsdl.PortType portType)

createPart

public javax.wsdl.Part createPart(MessagePartInfo part)

createRpcLitPart

public javax.wsdl.Part createRpcLitPart(javax.xml.namespace.QName pName,
                                        java.lang.Class clazz,
                                        SchemaType type)
Creates a wsdl:message part without creating a global schema element.

Parameters:
pName -
clazz -
type -
Returns:

createDocLitPart

public javax.wsdl.Part createDocLitPart(javax.xml.namespace.QName pName,
                                        java.lang.Class clazz,
                                        SchemaType type)
Creates a wsdl:message part and a global schema element for it if it is abstract.

Parameters:
pName -
clazz -
type -
Returns:

createOperation

public javax.wsdl.Operation createOperation(OperationInfo op,
                                            javax.wsdl.Message req,
                                            javax.wsdl.Message res,
                                            java.util.List faultMessages)

createInputParts

public void createInputParts(javax.wsdl.Message req,
                             OperationInfo op)

createOutputParts

public void createOutputParts(javax.wsdl.Message req,
                              OperationInfo op)

createWrappedInputParts

protected void createWrappedInputParts(javax.wsdl.Message req,
                                       OperationInfo op)

createWrappedOutputParts

protected void createWrappedOutputParts(javax.wsdl.Message req,
                                        OperationInfo op)

createDocumentType

protected javax.xml.namespace.QName createDocumentType(MessageInfo message,
                                                       javax.wsdl.Part part,
                                                       java.lang.String opName)

writeParametersSchema

protected void writeParametersSchema(java.util.Collection params,
                                     org.jdom.Element sequence)
Parameters:
op -
sequence -

addNamespace

public void addNamespace(java.lang.String prefix,
                         java.lang.String uri)
Overrides:
addNamespace in class AbstractWSDL

createSequence

protected org.jdom.Element createSequence(org.jdom.Element complex)

getWSDLBuilderExtensions

public java.util.List getWSDLBuilderExtensions()

setWSDLBuilderExtensions

public void setWSDLBuilderExtensions(java.util.List extensions)

getDefinition

public javax.wsdl.Definition getDefinition()

setDefinition

public void setDefinition(javax.wsdl.Definition definition)


Copyright © 2004-2011. All Rights Reserved.