javax.wsdl.xml
Interface WSDLWriter


public interface WSDLWriter

This interface 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.

Component:
WSDL-API interfaces

Method Summary
 org.w3c.dom.Document getDocument(Definition wsdlDef)
          Return a document generated from the specified WSDL model.
 boolean getFeature(java.lang.String name)
          Gets the value of the specified feature.
 void setFeature(java.lang.String name, boolean value)
          Sets the specified feature to the specified value.
 void writeWSDL(Definition wsdlDef, java.io.OutputStream sink)
          Write the specified WSDL definition to the specified OutputStream.
 void writeWSDL(Definition wsdlDef, java.io.Writer sink)
          Write the specified WSDL definition to the specified Writer.
 

Method Detail

setFeature

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

There are no minimum features that must be supported.

Parameters:
name - the name of the feature to be set.
value - the value to set the feature to.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
getFeature(String)

getFeature

public boolean getFeature(java.lang.String name)
                   throws java.lang.IllegalArgumentException
Gets the value of the specified feature.

Parameters:
name - the name of the feature to get the value of.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
setFeature(String, boolean)

getDocument

public org.w3c.dom.Document getDocument(Definition wsdlDef)
                                 throws WSDLException
Return a document generated from the specified WSDL model.

Throws:
WSDLException

writeWSDL

public void writeWSDL(Definition wsdlDef,
                      java.io.Writer sink)
               throws WSDLException
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.
Throws:
WSDLException

writeWSDL

public void writeWSDL(Definition wsdlDef,
                      java.io.OutputStream sink)
               throws WSDLException
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.
Throws:
WSDLException