/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * *************************************************************/ #ifndef __com_sun_star_reflection_XTypeDescriptionEnumerationAccess_idl__ #define __com_sun_star_reflection_XTypeDescriptionEnumerationAccess_idl__ #ifndef __com_sun_star_uno_XInterface_idl__ #include #endif #ifndef __com_sun_star_uno_TypeClass_idl__ #include #endif #ifndef __com_sun_star_reflection_XTypeDescriptionEnumeration_idl__ #include #endif #ifndef __com_sun_star_reflection_TypeDescriptionSearchDepth_idl__ #include #endif #ifndef __com_sun_star_reflection_NoSuchTypeNameException_idl__ #include #endif #ifndef __com_sun_star_reflection_InvalidTypeNameException_idl__ #include #endif //============================================================================= module com { module sun { module star { module reflection { //============================================================================= /** Defines an interface for creating enumerations for type descriptions. @since OpenOffice 1.1.2 */ published interface XTypeDescriptionEnumerationAccess : com::sun::star::uno::XInterface { /** Creates an enumeration for type descriptions.

An enumeration is always created for an UNOIDL module. The enumeration contents can be restricted by specifying type classes. Only types that match one of the supplied type classes will be part of the collection. Additionally, it is possible to specify the depth for the search within the underlying type description tree. @param moduleName contains the name of an UNOIDL module. Modules are seperated by a single '.' (i.e., "com.sun.star.reflection"). The root of the module hierarchy is specified with an empty string. Module names are always absolute, never relative. @param types restricts the contents of the enumeration. It will only contain type descriptions that match one of the supplied type classes. An empty sequence specifies that the enumeration shall contain all type descriptions.

Valid types classes are:

  • TypeClass::MODULE
  • TypeClass::INTERFACE
  • TypeClass::SERVICE
  • TypeClass::STRUCT
  • TypeClass::ENUM
  • TypeClass::EXCEPTION
  • TypeClass::TYPEDEF
  • TypeClass::CONSTANT
  • TypeClass::CONSTANTS
  • TypeClass::SINGLETON
@param depth specifies the depth of search in the underlying tree of type descriptions. Clients should be aware of the fact that specifiying TypeDescriptionSearchDepth::INFINITE can lead to larger delays when constructing or using the XTypeDescriptionEnumeration instance. @returns an enumeration of type descriptions.

The enumeration returns implementations of XTypeDescription. Following concrete UNOIDL parts represented by specialized interfaces derived from XTypeDescription can be returned by the enumerator:
IDLinterface
enum XEnumTypeDescription
struct XCompoundTypeDescription (the returned object should actually implement XStructTypeDescription)
exception XCompoundTypeDescription
interface XInterfaceTypeDescription (the returned object should actually implement XInterfaceTypeDescription2)
service XServiceTypeDescription (the returned object should actually implement XServiceTypeDescription2)
singleton XSingletonTypeDescription (the returned object should actually implement XSingletonTypeDescription2)
module XModuleTypeDescription
typedef XIndirectTypeDescription
constant XConstantTypeDescription
constants XConstantsTypeDescription
@throws NoSuchTypeNameException in case that the given module name does not exist. This exception will never be thrown in case moduleName is the empty string. @throws InvalidTypeNameException in case that the given module name does exist, but does not specify an UNOIDL module. This exception will never be thrown in case moduleName is the empty string. */ XTypeDescriptionEnumeration createTypeDescriptionEnumeration( [in] string moduleName, [in] sequence< com::sun::star::uno::TypeClass > types, [in] TypeDescriptionSearchDepth depth ) raises( NoSuchTypeNameException, InvalidTypeNameException ); }; //============================================================================= }; }; }; }; #endif