IT_Bus::AnyTypeFactory Class Reference

#include <it_bus_pdk/any_type_factory.h>

Inheritance diagram for IT_Bus::AnyTypeFactory:

IT_Bus::ObjectBase List of all members.

Detailed Description

Abstract interface for factories that can create AnyType instances from schema type names, and UserFaultException instances from message names.

Definition at line 30 of file any_type_factory.h.

Public Member Functions

virtual AnyTypecreate_from_type (const QName &type_name) const =0 throw ((UnknownTypeException))
 Create an instance of a schema type.
virtual AnyTypecreate_from_element (const QName &element_name) const =0 throw ((UnknownTypeException))
 Create an instance of an element's type.
virtual UserFaultExceptioncreate_user_fault (const QName &message) const =0 throw ((UnknownTypeException))
 Create a fault exception.
virtual AnyTypecreate_from_part (const IT_WSDL::WSDLPart &part) const =0 throw ((UnknownTypeException))
 Create an AnyType corresponding to a WSDL part.
virtual AnyTypecreate_from_model (const IT_XMLSCHEMA_Typenodes::SchemaType *schema_type) const =0 throw ((UnknownTypeException))
 Create an AnyType from a SchemaType.


Member Function Documentation

virtual AnyType* IT_Bus::AnyTypeFactory::create_from_type ( const QName type_name  )  const throw ((UnknownTypeException)) [pure virtual]

Create an instance of a schema type.

Parameters:
type_name schema type name.
Returns:
pointer to AnyType, caller must delete.
Exceptions:
UnknownTypeException type lookup failed.

virtual AnyType* IT_Bus::AnyTypeFactory::create_from_element ( const QName element_name  )  const throw ((UnknownTypeException)) [pure virtual]

Create an instance of an element's type.

Parameters:
element_name schema element name.
Returns:
pointer to AnyType, caller must delete.
Exceptions:
UnknownTypeException element lookup failed.

virtual UserFaultException* IT_Bus::AnyTypeFactory::create_user_fault ( const QName message  )  const throw ((UnknownTypeException)) [pure virtual]

Create a fault exception.

To throw the fault exception without leaking memory, use UserFaultHolder.

 UserFaultException* fault =
    AnyTypeFactory::instance().get_user_fault(my_message);
 throw UserFaultHolder(fault);
 
Parameters:
message name the fault message.
Exceptions:
UnknownTypeException message lookup failed.


Generated on Tue Mar 20 15:28:11 2007 for Artix by  doxygen 1.5.1-p1