com.ebmwebsourcing.wsstar.qml
Class WSQMLFactory

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.qml.WSQMLFactory
Direct Known Subclasses:
WSQMLFactoryImpl

public abstract class WSQMLFactory
extends java.lang.Object

This abstract class defines a factory API that enables applications to obtain a WSDMFactory 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
WSQMLFactory()
           
 
Method Summary
abstract  Constraint newConstraint()
           
abstract  EquivalentTo newEquivalentTo()
           
static WSQMLFactory newInstance()
          Get a new instance of a WSDMFactory.
abstract  QOSDimension newQOSDimension()
           
abstract  WSQMLReader newWSQMLReader()
          Create a new instance of a QoSMetrics.
abstract  WSQMLWriter newWSQMLWriter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSQMLFactory

public WSQMLFactory()
Method Detail

newInstance

public static WSQMLFactory newInstance()
                                throws WSQMLException
Get a new instance of a WSDMFactory. 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 WSDMFactory.

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 WSDMFactory is obtained, invoke newDefinition(), newWSDLReader(), or newWSDLWriter(), to create the desired instances.

Throws:
WSQMLException

newWSQMLReader

public abstract WSQMLReader newWSQMLReader()
                                    throws WSQMLException
Create a new instance of a QoSMetrics.

Throws:
WSDMException
WSQMLException

newWSQMLWriter

public abstract WSQMLWriter newWSQMLWriter()
                                    throws WSQMLException
Throws:
WSQMLException

newQOSDimension

public abstract QOSDimension newQOSDimension()
                                      throws WSQMLException
Throws:
WSQMLException

newConstraint

public abstract Constraint newConstraint()
                                  throws WSQMLException
Throws:
WSQMLException

newEquivalentTo

public abstract EquivalentTo newEquivalentTo()
                                      throws WSQMLException
Throws:
WSQMLException


Copyright © 2009 eBM Websourcing. All Rights Reserved.