org.ow2.easywsdl.extensions.sawsdl.impl.inout
Class SAWSDLReaderImpl

java.lang.Object
  extended by org.ow2.easywsdl.extensions.sawsdl.impl.inout.SAWSDLReaderImpl
All Implemented Interfaces:
SAWSDLReader

public class SAWSDLReaderImpl
extends java.lang.Object
implements SAWSDLReader

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
SAWSDLReaderImpl()
           
 
Method Summary
 javax.xml.bind.JAXBElement<AttrExtensions> convertElement2AttrExtensions(org.w3c.dom.Element attExtElmt)
           
 java.lang.Object getFeature(org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants name)
          Gets the value of the specified feature.
 java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
          Gets all features.
 Description readSAWSDL(org.w3c.dom.Document wsdlDocument)
          Read the specified WSDL document into a WSDL definition.
 Description readSAWSDL(java.net.URI wsdlURI)
          Read the WSDL document accessible via the specified URI into a WSDL definition.
 Description readSAWSDL(java.net.URI wsdlURI, javax.xml.transform.dom.DOMSource inputSource)
          Read a WSDL document into a WSDL definition.
 void setFeature(org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants name, java.lang.Object value)
          Sets the specified feature to the specified value.
 void setFeatures(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAWSDLReaderImpl

public SAWSDLReaderImpl()
                 throws SAWSDLException
Throws:
SAWSDLException
Method Detail

getFeature

public java.lang.Object getFeature(org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants name)
Description copied from interface: SAWSDLReader
Gets the value of the specified feature.

Specified by:
getFeature in interface SAWSDLReader
Parameters:
name - the name of the feature to get the value of.
Returns:
the value of feature
See Also:
#setFeature(String, boolean)

getFeatures

public java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
Description copied from interface: SAWSDLReader
Gets all features.

Specified by:
getFeatures in interface SAWSDLReader
Returns:
the features
See Also:
#setFeature(String, boolean)

setFeatures

public void setFeatures(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)

readSAWSDL

public Description readSAWSDL(java.net.URI wsdlURI)
                       throws SAWSDLException
Description copied from interface: SAWSDLReader
Read the WSDL document accessible via the specified URI into a WSDL definition.

Specified by:
readSAWSDL in interface SAWSDLReader
Parameters:
wsdlURI - a URI (can be a filename or URL) pointing to a WSDL XML definition.
Returns:
the definition.
Throws:
SAWSDLException

readSAWSDL

public Description readSAWSDL(org.w3c.dom.Document wsdlDocument)
                       throws SAWSDLException
Description copied from interface: SAWSDLReader
Read the specified WSDL document into a WSDL definition.

Specified by:
readSAWSDL in interface SAWSDLReader
Parameters:
wsdlDocument - the WSDL document, an XML document obeying the WSDL schema.
Returns:
the definition described in the document.
Throws:
SAWSDLException

readSAWSDL

public Description readSAWSDL(java.net.URI wsdlURI,
                              javax.xml.transform.dom.DOMSource inputSource)
                       throws SAWSDLException
Description copied from interface: SAWSDLReader
Read a WSDL document into a WSDL definition.

Specified by:
readSAWSDL in interface SAWSDLReader
inputSource - an InputSource pointing to the WSDL document, an XML document obeying the WSDL schema.
Returns:
the definition described in the document pointed to by the InputSource.
Throws:
SAWSDLException

setFeature

public void setFeature(org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants name,
                       java.lang.Object value)
                throws org.ow2.easywsdl.wsdl.api.WSDLException
Description copied from interface: SAWSDLReader
Sets the specified feature to the specified value.

The minimum features that must be supported are:

Name DescriptionImpl Default Value
org.ow2.easywsdl.schema.test.verbose
If set to true, status messages will be displayed.
type: boolean - default value: false
org.ow2.easywsdl.schema.test.importDocuments
If set to true, imported WSDL documents will be retrieved and processed.
type: boolean - default value: true
org.ow2.easywsdl.schema.test.pathDirectoryOfImportLocations
If the location is set, imported WSDL documents will be retrieved at this location (Set the importDocuments Features at true).
type: String

All feature names must be fully-qualified, Java package style. All names starting with om.ebmwebsourcing. are reserved for features defined by the 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 SAWSDLReader
Parameters:
name - the name of the feature to be set.
value - the value to set the feature to.
Throws:
org.ow2.easywsdl.wsdl.api.WSDLException - TODO
See Also:
#getFeature(String)

convertElement2AttrExtensions

public javax.xml.bind.JAXBElement<AttrExtensions> convertElement2AttrExtensions(org.w3c.dom.Element attExtElmt)
                                                                         throws org.ow2.easywsdl.wsdl.api.WSDLException
Throws:
org.ow2.easywsdl.wsdl.api.WSDLException


Copyright © 2008 eBM WebSourcing. All Rights Reserved.