|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.wsdl.xml.WSDLWriterImpl
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.
Constructor Summary | |
WSDLWriterImpl()
|
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. |
static void |
main(java.lang.String[] argv)
A test driver. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WSDLWriterImpl()
Method Detail |
public void setFeature(java.lang.String name, boolean value) throws java.lang.IllegalArgumentException
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
setFeature
in interface WSDLWriter
name
- the name of the feature to be set.value
- the value to set the feature to.java.lang.IllegalArgumentException
- if the feature name is not recognized.getFeature(String)
public boolean getFeature(java.lang.String name) throws java.lang.IllegalArgumentException
getFeature
in interface WSDLWriter
name
- the name of the feature to get the value of.java.lang.IllegalArgumentException
- if the feature name is not recognized.setFeature(String, boolean)
public org.w3c.dom.Document getDocument(Definition wsdlDef) throws WSDLException
getDocument
in interface WSDLWriter
public void writeWSDL(Definition wsdlDef, java.io.Writer sink) throws WSDLException
writeWSDL
in interface WSDLWriter
wsdlDef
- the WSDL definition to be written.sink
- the Writer to write the xml to.public void writeWSDL(Definition wsdlDef, java.io.OutputStream sink) throws WSDLException
writeWSDL
in interface WSDLWriter
wsdlDef
- the WSDL definition to be written.sink
- the OutputStream to write the xml to.public static void main(java.lang.String[] argv) throws WSDLException
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |