Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: lang ::

interface XTypeProvider
Description
interface to get information about the types (usually interface types) supported by an object.
Developers Guide
WritingUNO - Core Interfaces to Implement
AdvUNO - UNO Reflection API
WritingUNO - XTypeProvider

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

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.