org.codehaus.xfire.wsdl11.parser
Class WSDLServiceBuilder

java.lang.Object
  extended by org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder

public class WSDLServiceBuilder
extends Object

Builds a collection of Services from a WSDL.

Author:
Dan Diephouse
See Also:
Service

Field Summary
protected  javax.wsdl.Definition definition
           
static String WRAPPED_TYPE
           
 
Constructor Summary
WSDLServiceBuilder(javax.wsdl.Definition definition)
           
WSDLServiceBuilder(InputStream is)
           
WSDLServiceBuilder(String baseURI, InputSource source)
           
WSDLServiceBuilder(String baseURI, InputStream is)
           
 
Method Summary
protected  void addService(Service s)
          Adds a service to the map of services and also to the list of all services.
 void build()
           
 List getAllServices()
          Gets a list of every service created.
 BindingProvider getBindingProvider()
           
 javax.wsdl.Definition getDefinition()
           
 List getDefinitions()
           
 org.apache.ws.commons.schema.XmlSchemaCollection getSchemaCollection()
           
 List getSchemas()
          Returns a Collection of SchemaInfo objects.
protected  ServiceInfo getServiceInfo(javax.wsdl.PortType portType)
           
 Map getServices()
          Gets a Map of Services.
protected  String getTargetNamespace()
           
 TransportManager getTransportManager()
           
protected static boolean hasAttributes(org.apache.ws.commons.schema.XmlSchemaComplexType complexType)
           
 boolean isForceBare()
           
static boolean isWrapped(javax.wsdl.Operation op, org.apache.ws.commons.schema.XmlSchemaCollection schemas)
          A message is wrapped IFF: The input message has a single part.
protected  void processImports(javax.wsdl.Definition parent)
           
 void setBindingProvider(BindingProvider bindingProvider)
           
 void setForceBare(boolean forceBare)
           
 void setTransportManager(TransportManager transportManager)
           
protected  void visit(javax.wsdl.Fault fault)
           
protected  void visit(javax.wsdl.Input input)
           
protected  void visit(javax.wsdl.Operation operation)
           
protected  void visit(javax.wsdl.Output output)
           
protected  void visit(javax.wsdl.PortType portType)
           
protected  void visit(String location, javax.wsdl.Types types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WRAPPED_TYPE

public static final String WRAPPED_TYPE
See Also:
Constant Field Values

definition

protected final javax.wsdl.Definition definition
Constructor Detail

WSDLServiceBuilder

public WSDLServiceBuilder(javax.wsdl.Definition definition)

WSDLServiceBuilder

public WSDLServiceBuilder(InputStream is)
                   throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

WSDLServiceBuilder

public WSDLServiceBuilder(String baseURI,
                          InputStream is)
                   throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException

WSDLServiceBuilder

public WSDLServiceBuilder(String baseURI,
                          InputSource source)
                   throws javax.wsdl.WSDLException
Throws:
javax.wsdl.WSDLException
Method Detail

getBindingProvider

public BindingProvider getBindingProvider()

setBindingProvider

public void setBindingProvider(BindingProvider bindingProvider)

getDefinition

public javax.wsdl.Definition getDefinition()

getDefinitions

public List getDefinitions()

getTransportManager

public TransportManager getTransportManager()

setTransportManager

public void setTransportManager(TransportManager transportManager)

build

public void build()
           throws Exception
Throws:
Exception

addService

protected void addService(Service s)
Adds a service to the map of services and also to the list of all services.

Parameters:
s -

processImports

protected void processImports(javax.wsdl.Definition parent)

getServices

public Map getServices()
Gets a Map of Services. The key is the service name and the value is a list of services with that name.

Returns:

getAllServices

public List getAllServices()
Gets a list of every service created.

Returns:

visit

protected void visit(String location,
                     javax.wsdl.Types types)

visit

protected void visit(javax.wsdl.PortType portType)

getServiceInfo

protected ServiceInfo getServiceInfo(javax.wsdl.PortType portType)

visit

protected void visit(javax.wsdl.Fault fault)

visit

protected void visit(javax.wsdl.Input input)

visit

protected void visit(javax.wsdl.Operation operation)

isWrapped

public static boolean isWrapped(javax.wsdl.Operation op,
                                org.apache.ws.commons.schema.XmlSchemaCollection schemas)
A message is wrapped IFF: The input message has a single part. The part is an element. The element has the same name as the operation. The element's complex type has no attributes.

Returns:

hasAttributes

protected static boolean hasAttributes(org.apache.ws.commons.schema.XmlSchemaComplexType complexType)

getTargetNamespace

protected String getTargetNamespace()

visit

protected void visit(javax.wsdl.Output output)

getSchemas

public List getSchemas()
Returns a Collection of SchemaInfo objects.

Returns:

getSchemaCollection

public org.apache.ws.commons.schema.XmlSchemaCollection getSchemaCollection()

isForceBare

public boolean isForceBare()

setForceBare

public void setForceBare(boolean forceBare)


Copyright © 2004-2013. All Rights Reserved.