org.ow2.easywsdl.extensions.wsdl4complexwsdl
Class WSDL4ComplexWsdlFactory

java.lang.Object
  extended by org.ow2.easywsdl.wsdl.ExtensionFactory
      extended by org.ow2.easywsdl.extensions.wsdl4complexwsdl.WSDL4ComplexWsdlFactory
Direct Known Subclasses:
WSDL4ComplexWsdlFactoryImpl

public abstract class WSDL4ComplexWsdlFactory
extends org.ow2.easywsdl.wsdl.ExtensionFactory

This abstract class defines a factory API that enables applications to obtain a WSDLFactory capable of producing new Definitions, new WSDLReaders, and new WSDLWriters. Some ideas used here have been shamelessly copied from the wonderful JAXP and Xerces work.

Author:
Nicolas Salatge - eBM WebSourcing

Constructor Summary
WSDL4ComplexWsdlFactory()
           
 
Method Summary
abstract  Description addComplexWsdlElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
          Create a new instance of a Definition.
abstract  Description addExtElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
          Generic method for extensions
static WSDL4ComplexWsdlFactory newInstance()
          Get a new instance of a WSDLFactory.
abstract  WSDL4ComplexWsdlReader newWSDLReader()
          Create a new instance of a WSDLReaderImpl.
abstract  WSDL4ComplexWsdlReader newWSDLReader(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
          Create a new instance of a WSDLReaderImpl.
abstract  WSDL4ComplexWsdlWriter newWSDLWriter()
          Create a new instance of a WSDLWriterImpl.
 
Methods inherited from class org.ow2.easywsdl.wsdl.ExtensionFactory
getDescriptionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDL4ComplexWsdlFactory

public WSDL4ComplexWsdlFactory()
Method Detail

newInstance

public static WSDL4ComplexWsdlFactory newInstance()
                                           throws WSDL4ComplexWsdlException
Get a new instance of a WSDLFactory. This method follows (almost) the same basic sequence of steps that JAXP follows to determine the fully-qualified class name of the class which implements WSDLFactory.

The steps in order are:

  1. Check the property file META-INF/services/javax.wsdl.factory.WSDLFactory.
  2. Check the javax.wsdl.factory.WSDLFactory system property.
  3. Check the lib/wsdl.properties file in the JRE directory. The key will have the same name as the above system property.
  4. Use the default class name provided by the implementation.

Once an instance of a WSDLFactory is obtained, invoke newDefinition(), newWSDLReader(), or newWSDLWriter(), to create the desired instances.

Throws:
WSDL4ComplexWsdlException

addComplexWsdlElmt2Description

public abstract Description addComplexWsdlElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
                                                    throws WSDL4ComplexWsdlException
Create a new instance of a Definition.

Throws:
SAWSDLException
WSDL4ComplexWsdlException

addExtElmt2Description

public abstract Description addExtElmt2Description(org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfDescription desc)
                                            throws WSDL4ComplexWsdlException
Generic method for extensions

Specified by:
addExtElmt2Description in class org.ow2.easywsdl.wsdl.ExtensionFactory
Throws:
WSDL4BPELException
WSDL4ComplexWsdlException

newWSDLReader

public abstract WSDL4ComplexWsdlReader newWSDLReader()
                                              throws WSDL4ComplexWsdlException
Create a new instance of a WSDLReaderImpl.

Throws:
SAWSDLException
WSDL4ComplexWsdlException

newWSDLReader

public abstract WSDL4ComplexWsdlReader newWSDLReader(java.util.Map<org.ow2.easywsdl.wsdl.api.WSDLReader.FeatureConstants,java.lang.Object> features)
                                              throws WSDL4ComplexWsdlException
Create a new instance of a WSDLReaderImpl.

Throws:
SAWSDLException
WSDL4ComplexWsdlException

newWSDLWriter

public abstract WSDL4ComplexWsdlWriter newWSDLWriter()
                                              throws WSDL4ComplexWsdlException
Create a new instance of a WSDLWriterImpl.

Throws:
SAWSDLException
WSDL4ComplexWsdlException


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