org.ow2.easywsdl.wsdl.api
Interface WSDLWriter

All Known Implementing Classes:
WSDLWriterImpl, WSDLWriterImpl, WSDLWriterImpl

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.

Author:
Nicolas Salatge - eBM WebSourcing

Method Summary
 org.w3c.dom.Document getDocument(Description 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 useCustomNamespacesPrefixes(java.lang.String[] customPrefixes)
          Use normalized prefixes for namespace declaration.
 void useNormalizedNamespacesPrefixes()
          Use normalized prefixes for namespace declaration.
 java.lang.String writeWSDL(Description wsdlDef)
          Write the specified WSDL definition .
 

Method Detail

setFeature

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.

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:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
getFeature(String)

getFeature

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.
Returns:
the value of the feature.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
setFeature(String, boolean)

getDocument

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

Throws:
WSDLException

writeWSDL

java.lang.String writeWSDL(Description wsdlDef)
                           throws WSDLException
Write the specified WSDL definition .

Parameters:
wsdlDef - the WSDL definition to be written.
Throws:
WSDLException

useCustomNamespacesPrefixes

void useCustomNamespacesPrefixes(java.lang.String[] customPrefixes)
                                 throws WSDLException
Use normalized prefixes for namespace declaration. Add some custom prefixes if needed.

Parameters:
customPrefixes - array containing custom prefixes and namespaces to use with the format : (prefix1,nsUri1,prefix2,nsUri2,...)
Throws:
WSDLException

useNormalizedNamespacesPrefixes

void useNormalizedNamespacesPrefixes()
                                     throws WSDLException
Use normalized prefixes for namespace declaration.

Throws:
WSDLException


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.