org.ow2.easywsdl.wsdl.api.abstractElmt
Class AbstractWSDLReaderImpl

java.lang.Object
  extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLReaderImpl
All Implemented Interfaces:
WSDLReader
Direct Known Subclasses:
WSDLReaderImpl, WSDLReaderImpl, WSDLReaderImpl

public abstract class AbstractWSDLReaderImpl
extends java.lang.Object
implements WSDLReader

Author:
Nicolas Salatge - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ow2.easywsdl.wsdl.api.WSDLReader
WSDLReader.FeatureConstants
 
Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
AbstractWSDLReaderImpl()
           
 
Method Summary
 java.lang.Object getFeature(WSDLReader.FeatureConstants name)
          Gets the value of the specified feature.
 java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
          Get all features.
 java.util.Map<java.lang.String,AbsItfDescription> getImportList()
           
 org.ow2.easywsdl.schema.api.SchemaReader getSchemaReader()
           
abstract  Description read(org.xml.sax.InputSource source, java.util.Map<java.net.URI,AbsItfDescription> descriptionImports, java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports, boolean deleteImports)
          Read an WSDL part provided by an InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.
protected  Description readExternalPart(java.net.URI externalURI, java.net.URI documentBaseURI, java.util.Map<java.net.URI,AbsItfDescription> descriptionImports, java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports, boolean deleteImports)
          Read an external WSDL URI according to a base URI.
 void setDocumentBaseURI(java.net.URI documentBaseURI)
           
 void setFeature(WSDLReader.FeatureConstants name, java.lang.Object value)
          Sets the specified feature to the specified value.
 void setFeatures(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
          Set all features.
 void setImportList(java.util.Map<java.lang.String,AbsItfDescription> importLists)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.WSDLReader
read, read, read, read
 

Field Detail

log

protected static java.util.logging.Logger log
Constructor Detail

AbstractWSDLReaderImpl

public AbstractWSDLReaderImpl()
                       throws WSDLException
Throws:
WSDLException
Method Detail

getSchemaReader

public org.ow2.easywsdl.schema.api.SchemaReader getSchemaReader()

setDocumentBaseURI

public void setDocumentBaseURI(java.net.URI documentBaseURI)

setFeature

public final void setFeature(WSDLReader.FeatureConstants name,
                             java.lang.Object value)
                      throws WSDLException
Description copied from interface: WSDLReader
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 WSDLReader
Parameters:
name - the name of the feature to be set.
value - the value to set the feature to.
Throws:
WSDLException - TODO
See Also:
#getFeature(String)

getFeature

public final java.lang.Object getFeature(WSDLReader.FeatureConstants name)
Description copied from interface: WSDLReader
Gets the value of the specified feature.

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

getFeatures

public final java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> getFeatures()
Description copied from interface: WSDLReader
Get all features.

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

setFeatures

public final void setFeatures(java.util.Map<WSDLReader.FeatureConstants,java.lang.Object> features)
Description copied from interface: WSDLReader
Set all features.

Specified by:
setFeatures in interface WSDLReader

getImportList

public java.util.Map<java.lang.String,AbsItfDescription> getImportList()

setImportList

public void setImportList(java.util.Map<java.lang.String,AbsItfDescription> importLists)

read

public abstract Description read(org.xml.sax.InputSource source,
                                 java.util.Map<java.net.URI,AbsItfDescription> descriptionImports,
                                 java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports,
                                 boolean deleteImports)
                          throws WSDLException,
                                 java.net.MalformedURLException,
                                 java.net.URISyntaxException
Read an WSDL part provided by an InputSource, description imports/includes and schema imports/includes provided by descriptionImports and schemaImports are not read.

Parameters:
deleteImport - Clear import list
Throws:
WSDLException
java.net.MalformedURLException - The InputSource systemId is a malformed URL.
java.net.URISyntaxException - The InputSource systemId is an URL not formatted strictly according to to RFC2396 and cannot be converted to a URI.

readExternalPart

protected Description readExternalPart(java.net.URI externalURI,
                                       java.net.URI documentBaseURI,
                                       java.util.Map<java.net.URI,AbsItfDescription> descriptionImports,
                                       java.util.Map<java.net.URI,org.ow2.easywsdl.schema.api.absItf.AbsItfSchema> schemaImports,
                                       boolean deleteImports)
                                throws WSDLException,
                                       java.net.MalformedURLException,
                                       java.net.URISyntaxException
Read an external WSDL URI according to a base URI.

Throws:
WSDLException
java.net.MalformedURLException - The URL based on the external WSDL URI and the current base URI is a malformed URL.
java.net.URISyntaxException - The URL based on the external WSDL URI and the current base URI is an URL not formatted strictly according to to RFC2396 and cannot be converted to a URI.


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