org.ow2.easywsdl.extensions.wsdl4bpel.impl.inout
Class WSDL4BPELReaderImpl

java.lang.Object
  extended by org.ow2.easywsdl.extensions.wsdl4bpel.impl.inout.WSDL4BPELReaderImpl
All Implemented Interfaces:
WSDL4BPELReader

public class WSDL4BPELReaderImpl
extends java.lang.Object
implements WSDL4BPELReader

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
WSDL4BPELReaderImpl()
           
 
Method Summary
 javax.xml.bind.JAXBElement<TPartnerLinkType> convertElement2PartnerLinkType(org.w3c.dom.Element pltElmt)
           
 javax.xml.bind.JAXBElement<Property> convertElement2Property(org.w3c.dom.Element property)
           
 javax.xml.bind.JAXBElement<PropertyAlias> convertElement2PropertyAlias(org.w3c.dom.Element property)
           
 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 read(org.w3c.dom.Document wsdlDocument)
           Read the BPEL WSDL document available at the specified DOM Document , and bind it into a Description object.
 Description read(org.xml.sax.InputSource wsdlInputSource)
           Read the BPEL WSDL document available at the specified InputSource, and bind it into a Description object.
 Description read(java.net.URL wsdlURL)
           Read the BPEL WSDL document available at the location identified by the specified URL, and bind it into a Description object.
 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

WSDL4BPELReaderImpl

public WSDL4BPELReaderImpl()
                    throws WSDL4BPELException
Throws:
WSDL4BPELException
Method Detail

getFeature

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

Specified by:
getFeature in interface WSDL4BPELReader
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: WSDL4BPELReader
Gets all features.

Specified by:
getFeatures in interface WSDL4BPELReader
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)

read

public Description read(java.net.URL wsdlURL)
                 throws WSDL4BPELException,
                        java.io.IOException,
                        java.net.URISyntaxException

Read the BPEL WSDL document available at the location identified by the specified URL, and bind it into a Description object.

Note: all relative URIs are resolved according to the specified URL.

Specified by:
read in interface WSDL4BPELReader
Parameters:
wsdlURL - an URL pointing to a BPEL WSDL document.
Returns:
the Description definition.
Throws:
WSDL4BPELException - An error occurs during the parsing or the binding of the BPEL WSDL document.
java.io.IOException - An I/O error occurs openning the URL stream.
java.net.URISyntaxException - If the URL is not formatted strictly according to to RFC2396 and cannot be converted to a URI.

read

public Description read(org.w3c.dom.Document wsdlDocument)
                 throws WSDL4BPELException,
                        java.net.URISyntaxException

Read the BPEL WSDL document available at the specified DOM Document , and bind it into a Description object.

Note: To be able to resolve relative URIs, the Document base URI must be set.

Specified by:
read in interface WSDL4BPELReader
Parameters:
wsdlDocument - a DOM Document pointing to a BPEL WSDL document.
Returns:
the Description definition.
Throws:
WSDL4BPELException - An error occurs during the parsing or the binding of the BPEL WSDL document
java.net.URISyntaxException - the DOM Document base URI is not formatted strictly according to to RFC2396 and cannot be converted to a URI.

read

public Description read(org.xml.sax.InputSource wsdlInputSource)
                 throws WSDL4BPELException,
                        java.net.MalformedURLException,
                        java.net.URISyntaxException

Read the BPEL WSDL document available at the specified InputSource, and bind it into a Description object.

Note: To be able to resolve relative URIs, the InputSource system identifier must be set.

Specified by:
read in interface WSDL4BPELReader
Parameters:
wsdlInputSource - an InputSource pointing to a BPEL WSDL document.
Returns:
the Description definition.
Throws:
WSDL4BPELException - An error occurs during the parsing or the binding of the BPEL WSDL document.
java.net.MalformedURLException - The InputSource system identifier is not a well-formed URL.
java.net.URISyntaxException - the InputSource system identifier is not formatted strictly according to to RFC2396 and cannot be converted to a URI.

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: WSDL4BPELReader
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 WSDL4BPELReader
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)

convertElement2PartnerLinkType

public javax.xml.bind.JAXBElement<TPartnerLinkType> convertElement2PartnerLinkType(org.w3c.dom.Element pltElmt)
                                                                            throws org.ow2.easywsdl.wsdl.api.WSDLException
Throws:
org.ow2.easywsdl.wsdl.api.WSDLException

convertElement2Property

public javax.xml.bind.JAXBElement<Property> convertElement2Property(org.w3c.dom.Element property)
                                                             throws org.ow2.easywsdl.wsdl.api.WSDLException
Throws:
org.ow2.easywsdl.wsdl.api.WSDLException

convertElement2PropertyAlias

public javax.xml.bind.JAXBElement<PropertyAlias> convertElement2PropertyAlias(org.w3c.dom.Element property)
                                                                       throws org.ow2.easywsdl.wsdl.api.WSDLException
Throws:
org.ow2.easywsdl.wsdl.api.WSDLException


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