All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

KnowledgeInterfaces Interface CATIInstanceExtension

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATIInstanceExtension
 

Usage: you can reimplement this interface by deriving the supplied CATKweInstanceExtensionAdapter adapter class.


interface CATIInstanceExtension

Interface to declare Knowledgeware access on Feature extensions.
Role: this interface allows a feature extension to publish its types and values to KnowledgeWare and to the Search functionality by granting objects with static type information.
This interface should be implemented by feature extensions.
The extended feature is supposed to delegate its implementation of CATIInstance to the implementation of CATIInstanceExtension on its feature extensions.
Watch out: an extended feature can decide or not to give a Knowledge visibility to its extensions.
Implementations of that interface should derive from CATKweInstanceExtensionAdapter.

BOA information: this interface CAN be implemented using the BOA (Basic Object Adapter). To know more about the BOA, refer to the CAA Encyclopedia home page. Click Middleware at the bottom left, then click the Object Modeler tab page. Several articles deal with the BOA.

See also:
CATIInstance, CATIType, CATIValue


Method Index


o GetValue(CATUnicodeString&)
Gets an attribute value.
o ListSupportedTypes(CATListValCATIType_var&)
Fills the given list with types supported by this feature extension.
o SetValue(CATUnicodeString&,CATIValue_var&)
Sets an attribute value.

Methods


o GetValue
public virtual CATIValue* GetValue( const CATUnicodeString& iKey)= 0
Gets an attribute value.
Parameters:
iKey
Name of the attribute.
Returns:
iValue Value of the attribute (an AddRef is done, if not NULL).
o ListSupportedTypes
public virtual HRESULT ListSupportedTypes(CATListValCATIType_var& iolListOfCATIType)const = 0
Fills the given list with types supported by this feature extension.
The list is input may not be empty. This method is supposed to add some types to the list.
Parameters:
iolListOfCATIType
the filled list.
o SetValue
public virtual HRESULT SetValue( const CATUnicodeString& iKey,
const CATIValue_var& iValue)= 0
Sets an attribute value.
Parameters:
iKey
Name of the attribute.
iValue
Value of the attribute.

This object is included in the file: CATIInstanceExtension.h
If needed, your Imakefile.mk should include the module: KnowledgeItf

Copyright © 2003, Dassault Systèmes. All rights reserved.