com.ibm.wsdl.xml

Class WSDLWriterImpl

public class WSDLWriterImpl extends Object implements WSDLWriter

This class describes a collection of methods that allow a WSDL model to be written to a writer in an XML format that follows the WSDL schema.

Author: Matthew J. Duftler Nirmal Mukhi

Method Summary
DocumentgetDocument(Definition wsdlDef)
Return a document generated from the specified WSDL model.
booleangetFeature(String name)
Gets the value of the specified feature.
static voidmain(String[] argv)
A test driver.
protected voidprintBindingFaults(Map bindingFaults, Definition def, PrintWriter pw)
protected voidprintBindingInput(BindingInput bindingInput, Definition def, PrintWriter pw)
protected voidprintBindingOperations(List bindingOperations, Definition def, PrintWriter pw)
protected voidprintBindingOutput(BindingOutput bindingOutput, Definition def, PrintWriter pw)
protected voidprintBindings(Map bindings, Definition def, PrintWriter pw)
protected voidprintDefinition(Definition def, PrintWriter pw)
protected voidprintDocumentation(Element docElement, PrintWriter pw)
protected voidprintExtensibilityAttributes(Class parentType, AttributeExtensible attrExt, Definition def, PrintWriter pw)
protected voidprintExtensibilityElements(Class parentType, List extensibilityElements, Definition def, PrintWriter pw)
protected voidprintFaults(Map faults, Definition def, PrintWriter pw)
protected voidprintImports(Map imports, Definition def, PrintWriter pw)
protected voidprintInput(Input input, Definition def, PrintWriter pw)
protected voidprintMessages(Map messages, Definition def, PrintWriter pw)
protected voidprintNamespaceDeclarations(Map namespaces, PrintWriter pw)
protected voidprintOperations(List operations, Definition def, PrintWriter pw)
protected voidprintOutput(Output output, Definition def, PrintWriter pw)
protected voidprintParts(List parts, Definition def, PrintWriter pw)
protected voidprintPorts(Map ports, Definition def, PrintWriter pw)
protected voidprintPortTypes(Map portTypes, Definition def, PrintWriter pw)
protected voidprintServices(Map services, Definition def, PrintWriter pw)
protected voidprintTypes(Types types, Definition def, PrintWriter pw)
voidsetFeature(String name, boolean value)
Sets the specified feature to the specified value.
voidwriteWSDL(Definition wsdlDef, Writer sink)
Write the specified WSDL definition to the specified Writer.
voidwriteWSDL(Definition wsdlDef, OutputStream sink)
Write the specified WSDL definition to the specified OutputStream.

Method Detail

getDocument

public Document getDocument(Definition wsdlDef)
Return a document generated from the specified WSDL model.

getFeature

public boolean getFeature(String name)
Gets the value of the specified feature.

Parameters: name the name of the feature to get the value of.

Throws: IllegalArgumentException if the feature name is not recognized.

See Also: WSDLWriterImpl

main

public static void main(String[] argv)
A test driver.
Usage:

  java com.ibm.wsdl.xml.WSDLWriterImpl filename|URL

    This test driver simply reads a WSDL document into a model
    (using a WSDLReader), and then serializes it back to
    standard out. In effect, it performs a round-trip test on
    the specified WSDL document.

printBindingFaults

protected void printBindingFaults(Map bindingFaults, Definition def, PrintWriter pw)

printBindingInput

protected void printBindingInput(BindingInput bindingInput, Definition def, PrintWriter pw)

printBindingOperations

protected void printBindingOperations(List bindingOperations, Definition def, PrintWriter pw)

printBindingOutput

protected void printBindingOutput(BindingOutput bindingOutput, Definition def, PrintWriter pw)

printBindings

protected void printBindings(Map bindings, Definition def, PrintWriter pw)

printDefinition

protected void printDefinition(Definition def, PrintWriter pw)

printDocumentation

protected void printDocumentation(Element docElement, PrintWriter pw)

printExtensibilityAttributes

protected void printExtensibilityAttributes(Class parentType, AttributeExtensible attrExt, Definition def, PrintWriter pw)

printExtensibilityElements

protected void printExtensibilityElements(Class parentType, List extensibilityElements, Definition def, PrintWriter pw)

printFaults

protected void printFaults(Map faults, Definition def, PrintWriter pw)

printImports

protected void printImports(Map imports, Definition def, PrintWriter pw)

printInput

protected void printInput(Input input, Definition def, PrintWriter pw)

printMessages

protected void printMessages(Map messages, Definition def, PrintWriter pw)

printNamespaceDeclarations

protected void printNamespaceDeclarations(Map namespaces, PrintWriter pw)

printOperations

protected void printOperations(List operations, Definition def, PrintWriter pw)

printOutput

protected void printOutput(Output output, Definition def, PrintWriter pw)

printParts

protected void printParts(List parts, Definition def, PrintWriter pw)

printPorts

protected void printPorts(Map ports, Definition def, PrintWriter pw)

printPortTypes

protected void printPortTypes(Map portTypes, Definition def, PrintWriter pw)

printServices

protected void printServices(Map services, Definition def, PrintWriter pw)

printTypes

protected void printTypes(Types types, Definition def, PrintWriter pw)

setFeature

public void setFeature(String name, boolean value)
Sets the specified feature to the specified value.

There are no minimum features that must be supported.

All feature names must be fully-qualified, Java package style. All names starting with javax.wsdl. are reserved for features defined by the JWSDL specification. It is recommended that implementation- specific features be fully-qualified to match the package name of that implementation. For example: com.abc.featureName

Parameters: name the name of the feature to be set. value the value to set the feature to.

Throws: IllegalArgumentException if the feature name is not recognized.

See Also: getFeature

writeWSDL

public void writeWSDL(Definition wsdlDef, Writer sink)
Write the specified WSDL definition to the specified Writer.

Parameters: wsdlDef the WSDL definition to be written. sink the Writer to write the xml to.

writeWSDL

public void writeWSDL(Definition wsdlDef, OutputStream sink)
Write the specified WSDL definition to the specified OutputStream.

Parameters: wsdlDef the WSDL definition to be written. sink the OutputStream to write the xml to.

Copyright B) 2003,2005 IBM. All Rights Reserved.