/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * 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 . */ module com { module sun { module star { module container { /** provides a default XEnumerableMap implementation

For the keys put into the map using XMap::put() or createImmutable(), the following rules apply:

For the values put into the map using XMap::put() or createImmutable(), the following rules apply:

The factory methods of the XEnumerableMap interface support both isolated and non-isolated enumerators. The latter one will be automatically disposed when the map changes after enumerator creation, so every attempt to use them will result in a com::sun::star::lang::DisposedException being thrown.

@see http://udk.openoffice.org/common/man/typesystem.html */ service EnumerableMap : XEnumerableMap { /** creates an instance mapping from the given key type to the given value type @param KeyType denotes the type of the keys in the to-be-created map @param ValueType denotes the type of the values in the to-be-created map @throws ::com::sun::star::beans::IllegalTypeException if KeyType or ValueType are unsupported types. For values, all type classes except com::sun::star::uno::TypeClass::VOID and com::sun::star::uno::TypeClass::UNKNOWN are accepted. For keys, scalar types, strings, com::sun::star::uno::Type itself, and interface types are accepted. */ create( [in] type KeyType, [in] type ValueType ) raises( ::com::sun::star::beans::IllegalTypeException ); /** creates an instance mapping from the given key type to the given value type

The resulting map is immutable, so later alter operations on it will fail with a com::sun::star::lang::NoSupportException.

@param KeyType denotes the type of the keys in the to-be-created map @param ValueType denotes the type of the values in the to-be-created map @param Values denote the values contained in the to-be-created map @throws ::com::sun::star::beans::IllegalTypeException if KeyType or ValueType are unsupported types. For values, all type classes except com::sun::star::uno::TypeClass::VOID are accepted.
For keys, scalar types, strings, com::sun::star::uno::Type itself, and interface types are accepted. @throws ::com::sun::star::lang::IllegalArgumentException if any of the given values or keys violates the key rules or value rules. */ createImmutable( [in] type KeyType, [in] type ValueType, [in] sequence< ::com::sun::star::beans::Pair< any, any > > Values ) raises( ::com::sun::star::beans::IllegalTypeException, ::com::sun::star::lang::IllegalArgumentException ); }; }; }; }; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */