org.ow2.easywsdl.wsdl.impl.generic
Class WSDLWriterImpl

java.lang.Object
  extended by org.ow2.easywsdl.wsdl.impl.generic.WSDLWriterImpl
All Implemented Interfaces:
WSDLWriter

public class WSDLWriterImpl
extends java.lang.Object
implements WSDLWriter

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
WSDLWriterImpl()
           
WSDLWriterImpl(java.util.List<java.lang.Class> addedObjectFactories)
           
 
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 .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDLWriterImpl

public WSDLWriterImpl()
               throws WSDLException
Throws:
WSDLException

WSDLWriterImpl

public WSDLWriterImpl(java.util.List<java.lang.Class> addedObjectFactories)
               throws WSDLException
Throws:
WSDLException
Method Detail

getDocument

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

Specified by:
getDocument in interface WSDLWriter
Throws:
WSDLException

getFeature

public boolean getFeature(java.lang.String name)
                   throws java.lang.IllegalArgumentException
Description copied from interface: WSDLWriter
Gets the value of the specified feature.

Specified by:
getFeature in interface WSDLWriter
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:
WSDLWriter.setFeature(String, boolean)

setFeature

public void setFeature(java.lang.String name,
                       boolean value)
                throws java.lang.IllegalArgumentException
Description copied from interface: WSDLWriter
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

Specified by:
setFeature in interface WSDLWriter
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:
WSDLWriter.getFeature(String)

writeWSDL

public java.lang.String writeWSDL(Description wsdlDef)
                           throws WSDLException
Description copied from interface: WSDLWriter
Write the specified WSDL definition .

Specified by:
writeWSDL in interface WSDLWriter
Parameters:
wsdlDef - the WSDL definition to be written.
Throws:
WSDLException

useCustomNamespacesPrefixes

public void useCustomNamespacesPrefixes(java.lang.String[] customPrefixes)
                                 throws WSDLException
Description copied from interface: WSDLWriter
Use normalized prefixes for namespace declaration. Add some custom prefixes if needed.

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

useNormalizedNamespacesPrefixes

public void useNormalizedNamespacesPrefixes()
                                     throws WSDLException
Description copied from interface: WSDLWriter
Use normalized prefixes for namespace declaration.

Specified by:
useNormalizedNamespacesPrefixes in interface WSDLWriter
Throws:
WSDLException


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