com.ibm.ws.sibx.smobo.util
Class WSDLMessageEClassFactory

java.lang.Object
  extended bycom.ibm.ws.sibx.smobo.util.WSDLMessageEClassFactory

public class WSDLMessageEClassFactory
extends java.lang.Object

WSDLMessageEClassFactory manages ECore models based on WSDL Message definitions. It is primarily used to obtain an EClass representing the Message, given a namespace and Message name. These EClasses are registered with the ExtendedMetaData of EMF, meaning they can be reused. For a given WSDL Message definition, this class provides an EClassifier representing the definition. If the Message has a single part, described by a global element name (rather than a type), then the EClassifier is simply the classifier of the element. Otherwise, an EClass is generated to represent the message. This EClass has the same name as the message, and is in an EPackage named for the message's namespace. The EClass has a feature for each part in the message, named after the part, which itself has EClassifier appropriate for the part. In the latter case, if an EClass and EPackage with these names already exists, the existing EClass is returned. Clients of this Factory can optionally obtain a WSDLMessageInfo object which contains the appropriate EClassifier, a list of parts in the WSDL, whether the part is represented in the returned EClassifier, and whether the EClass was not generated by a WSDLMessageEClassFactory.


Field Summary
static java.lang.String $sccsid
           
static java.lang.String COPYRIGHT
           
static WSDLMessageEClassFactory INSTANCE
           
 
Constructor Summary
WSDLMessageEClassFactory()
           
 
Method Summary
 org.eclipse.emf.ecore.EClassifier getEClassiferForMessageName(javax.xml.namespace.QName qname)
          Given a namespace and name, return an EClassifier modelling the WSDL Message.
 org.eclipse.emf.ecore.EClassifier getEClassiferForMessageName(java.lang.String namespace, java.lang.String name)
          Given a namespace and name, return an EClassifier modelling the WSDL Message.
 WSDLMessageInfo getInfoForMessageName(javax.xml.namespace.QName qname)
          Given a namespace and name, return a WSDLMessageInfo describing the WSDL Message.
 WSDLMessageInfo getInfoForMessageName(java.lang.String namespace, java.lang.String name)
          Given a namespace and name, return a WSDLMessageInfo describing the WSDL Message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

$sccsid

public static final java.lang.String $sccsid
See Also:
Constant Field Values

INSTANCE

public static final WSDLMessageEClassFactory INSTANCE
Constructor Detail

WSDLMessageEClassFactory

public WSDLMessageEClassFactory()
Method Detail

getEClassiferForMessageName

public org.eclipse.emf.ecore.EClassifier getEClassiferForMessageName(java.lang.String namespace,
                                                                     java.lang.String name)
Given a namespace and name, return an EClassifier modelling the WSDL Message.

Parameters:
namespace - namespace of Message
name - local part of Message name
Returns:
the EClassifier; or null if no such message

getEClassiferForMessageName

public org.eclipse.emf.ecore.EClassifier getEClassiferForMessageName(javax.xml.namespace.QName qname)
Given a namespace and name, return an EClassifier modelling the WSDL Message.

Parameters:
qname - - namespace and local part of Message name
Returns:
the WSDLMessageInfo; or null if no such message

getInfoForMessageName

public WSDLMessageInfo getInfoForMessageName(java.lang.String namespace,
                                             java.lang.String name)
Given a namespace and name, return a WSDLMessageInfo describing the WSDL Message.

Parameters:
namespace - namespace of Message
name - local part of Message name
Returns:
the WSDLMessageInfo; or null if no such message

getInfoForMessageName

public WSDLMessageInfo getInfoForMessageName(javax.xml.namespace.QName qname)
Given a namespace and name, return a WSDLMessageInfo describing the WSDL Message.

Parameters:
qname - - namespace and local part of Message name
Returns:
the WSDLMessageInfo; or null if no such message