org.apache.axis2.wsdl.builder.wsdl4j
Class WSDL1ToWOMBuilder

java.lang.Object
  extended byorg.apache.axis2.wsdl.builder.wsdl4j.WSDL1ToWOMBuilder
All Implemented Interfaces:
WOMBuilder

public class WSDL1ToWOMBuilder
extends java.lang.Object
implements WOMBuilder


Constructor Summary
WSDL1ToWOMBuilder()
           
 
Method Summary
 WSDLVersionWrapper build(java.io.InputStream in)
          Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(java.io.InputStream in, WSDLComponentFactory wsdlComponentFactory)
          Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(java.lang.String uri)
          Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper.
 WSDLVersionWrapper build(java.lang.String uri, WSDLComponentFactory wsdlComponentFactory)
          Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDL1ToWOMBuilder

public WSDL1ToWOMBuilder()
Method Detail

build

public WSDLVersionWrapper build(java.io.InputStream in)
                         throws WSDLException
Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper.

Specified by:
build in interface WOMBuilder
Parameters:
in - InputStream from which the WSDL document can be read in.
Returns:
WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
WSDLException

build

public WSDLVersionWrapper build(java.io.InputStream in,
                                WSDLComponentFactory wsdlComponentFactory)
                         throws WSDLException
Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper. A WSDL Component Factory can be passed into the builder using which the WOM component can be built out of. For example: The Enigne uses the WOM's components in the context hierarchy but those are extended components. (ServiceDescription extends WSDLService.) So when deployment build the WOM it would prefer to get a ServiceDescription built in place of a WSDLService. This can be achieved by passing the correct Component Factory that will instanciate the correct object for the WOM builder.

Specified by:
build in interface WOMBuilder
Parameters:
in - InputStream from which the WSDL document can be read in.
wsdlComponentFactory - The ComponentFactory that will be used to create the WOm components out of.
Returns:
WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
WSDLException

build

public WSDLVersionWrapper build(java.lang.String uri)
                         throws WSDLException
Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper.

Specified by:
build in interface WOMBuilder
Parameters:
uri - URI pointing to the WSDL document.
Returns:
WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
WSDLException

build

public WSDLVersionWrapper build(java.lang.String uri,
                                WSDLComponentFactory wsdlComponentFactory)
                         throws WSDLException
Buils a WOM and a WSDL4J object model from given the URI of the WSDL file and will be returned as a wrapper object WSDLVersionWrapper. A WSDL Component Factory can be passed into the builder using which the WOM component can be built out of. For example: The Enigne uses the WOM's components in the context hierarchy but those are extended components. (ServiceDescription extends WSDLService.) So when deployment build the WOM it would prefer to get a ServiceDescription built in place of a WSDLService. This can be achieved by passing the correct Component Factory that will instanciate the correct object for the WOM builder.

Specified by:
build in interface WOMBuilder
Parameters:
uri - URI pointing to the WSDL document.
wsdlComponentFactory - The ComponentFactory that will be used to create the WOm components out of.
Returns:
WSDLVersionWrapper which contains both the WSDL 2.0 and WSDL 1.1 object models.
Throws:
WSDLException