org.apache.axis2.wsdl.builder
Interface WOMBuilder

All Known Implementing Classes:
WSDL1ToWOMBuilder, WSDL2ToWOMBuilder

public interface WOMBuilder


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.
 

Method Detail

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.

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.

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

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.

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.

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