Overview | Module | Use | Devguide | Index

Methods' Summary | Methods' Details | Attributes' Summary | Attributes' Details

:: com :: sun :: star :: lang ::
interface XTypeProvider
  Base Hierarchy
      ::com::sun::star::uno::XInterface
       |
       +-XTypeProvider
Description interface to get information about the types (usually interface types) supported by an object. Developers Guide 5.2.3 Advanced UNO - Language Bindings - UNO Reflection API 4.4.2 Writing UNO Components - Core Interfaces to Implement - XTypeProvider 4.4 Writing UNO Components - Core Interfaces to Implement

Methods' Summary
getTypes | returns a sequence of all types (usually interface types) provided by the object. Important: If the object aggregates other objects the sequence also has to contain all types supported by the aggregated objects.
getImplementationId | returns a sequence of bytes with length > 0 that is used as an Id to distinguish unambiguously between two sets of types, e.g. to realise hashing functionality when the object is introspected. Two objects that return the same UUID also have to return the same set of types in getTypes(). If a unique implementation Id cannot be provided this method has to return an empty sequence. Important: If the object aggregates other objects the UUID has to be unique for the whole combination of objects.

Methods' Details
getTypes
sequence< type > getTypes(); |  |
Description returns a sequence of all types (usually interface types) provided by the object. Important: If the object aggregates other objects the sequence also has to contain all types supported by the aggregated objects.
getImplementationId
sequence< byte > getImplementationId(); |  |
Description returns a sequence of bytes with length > 0 that is used as an Id to distinguish unambiguously between two sets of types, e.g. to realise hashing functionality when the object is introspected. Two objects that return the same UUID also have to return the same set of types in getTypes(). If a unique implementation Id cannot be provided this method has to return an empty sequence. Important: If the object aggregates other objects the UUID has to be unique for the whole combination of objects.

Top of Page

Copyright © 2003 Sun Microsystems, Inc.