1*408a4873SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*408a4873SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*408a4873SAndrew Rist * distributed with this work for additional information 6*408a4873SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance 9*408a4873SAndrew Rist * with the License. You may obtain a copy of the License at 10*408a4873SAndrew Rist * 11*408a4873SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*408a4873SAndrew Rist * 13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*408a4873SAndrew Rist * software distributed under the License is distributed on an 15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*408a4873SAndrew Rist * KIND, either express or implied. See the License for the 17*408a4873SAndrew Rist * specific language governing permissions and limitations 18*408a4873SAndrew Rist * under the License. 19*408a4873SAndrew Rist * 20*408a4873SAndrew Rist *************************************************************/ 21*408a4873SAndrew Rist 22*408a4873SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_reflection_XIdlArray_idl__ 24cdf0e10cSrcweir#define __com_sun_star_reflection_XIdlArray_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__ 27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir 30cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 31cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl> 32cdf0e10cSrcweir#endif 33cdf0e10cSrcweir 34cdf0e10cSrcweir#ifndef __com_sun_star_lang_ArrayIndexOutOfBoundsException_idl__ 35cdf0e10cSrcweir#include <com/sun/star/lang/ArrayIndexOutOfBoundsException.idl> 36cdf0e10cSrcweir#endif 37cdf0e10cSrcweir 38cdf0e10cSrcweir 39cdf0e10cSrcweir//============================================================================= 40cdf0e10cSrcweir 41cdf0e10cSrcweir module com { module sun { module star { module reflection { 42cdf0e10cSrcweir 43cdf0e10cSrcweir//============================================================================= 44cdf0e10cSrcweir 45cdf0e10cSrcweir/** Reflects an IDL sequence and provides dynamic access to instances of 46cdf0e10cSrcweir that sequence. 47cdf0e10cSrcweir This interface supports widening conversion when getting or setting elements. 48cdf0e10cSrcweir 49cdf0e10cSrcweir @attention 50cdf0e10cSrcweir Although the name of this interface denotes arrays, 51cdf0e10cSrcweir sequences are meant. Don't be obfuscated, arrays are not supported by UNO! 52cdf0e10cSrcweir*/ 53cdf0e10cSrcweirpublished interface XIdlArray: com::sun::star::uno::XInterface 54cdf0e10cSrcweir{ 55cdf0e10cSrcweir /** Rellocates the length of the sequence instance. 56cdf0e10cSrcweir 57cdf0e10cSrcweir @param array 58cdf0e10cSrcweir sequence instance 59cdf0e10cSrcweir @length 60cdf0e10cSrcweir new length of sequence 61cdf0e10cSrcweir */ 62cdf0e10cSrcweir void realloc( 63cdf0e10cSrcweir [inout] any array, 64cdf0e10cSrcweir [in] long length ) 65cdf0e10cSrcweir raises( com::sun::star::lang::IllegalArgumentException ); 66cdf0e10cSrcweir 67cdf0e10cSrcweir /** Returns the length of the given sequence. 68cdf0e10cSrcweir 69cdf0e10cSrcweir @param array 70cdf0e10cSrcweir sequence instance 71cdf0e10cSrcweir @return 72cdf0e10cSrcweir length of sequence 73cdf0e10cSrcweir */ 74cdf0e10cSrcweir long getLen( [in] any array ) 75cdf0e10cSrcweir raises( com::sun::star::lang::IllegalArgumentException ); 76cdf0e10cSrcweir 77cdf0e10cSrcweir /** Returns element at given index. 78cdf0e10cSrcweir 79cdf0e10cSrcweir @param aArray 80cdf0e10cSrcweir sequence instance 81cdf0e10cSrcweir @param nIndex 82cdf0e10cSrcweir index 83cdf0e10cSrcweir @return 84cdf0e10cSrcweir value 85cdf0e10cSrcweir 86cdf0e10cSrcweir @throws IllegalArgumentException 87cdf0e10cSrcweir if the specified object is not a sequence or if the specified object is null 88cdf0e10cSrcweir 89cdf0e10cSrcweir @throws ArrayIndexOutOfBoundsException 90cdf0e10cSrcweir if the specified index argument is negative, or if it is greater than or equal to the 91cdf0e10cSrcweir length of the specified sequence. 92cdf0e10cSrcweir */ 93cdf0e10cSrcweir any get( 94cdf0e10cSrcweir [in] any aArray, 95cdf0e10cSrcweir [in] long nIndex ) 96cdf0e10cSrcweir raises( com::sun::star::lang::IllegalArgumentException, 97cdf0e10cSrcweir com::sun::star::lang::ArrayIndexOutOfBoundsException ); 98cdf0e10cSrcweir 99cdf0e10cSrcweir /** Sets a new value at given index. 100cdf0e10cSrcweir 101cdf0e10cSrcweir @param aArray 102cdf0e10cSrcweir sequence instance 103cdf0e10cSrcweir @param nIndex 104cdf0e10cSrcweir index 105cdf0e10cSrcweir @param aNewValue 106cdf0e10cSrcweir new value to be set 107cdf0e10cSrcweir 108cdf0e10cSrcweir @throws IllegalArgumentException 109cdf0e10cSrcweir if the specified object is not a sequence or if the specified object is null 110cdf0e10cSrcweir 111cdf0e10cSrcweir @throws ArrayIndexOutOfBoundsException 112cdf0e10cSrcweir if the specified index argument is negative, or if it is greater than or equal to the 113cdf0e10cSrcweir length of the specified sequence. 114cdf0e10cSrcweir */ 115cdf0e10cSrcweir void set( 116cdf0e10cSrcweir [inout] any aArray, 117cdf0e10cSrcweir [in] long nIndex, 118cdf0e10cSrcweir [in] any aNewValue ) 119cdf0e10cSrcweir raises( com::sun::star::lang::IllegalArgumentException, 120cdf0e10cSrcweir com::sun::star::lang::ArrayIndexOutOfBoundsException ); 121cdf0e10cSrcweir}; 122cdf0e10cSrcweir 123cdf0e10cSrcweir//============================================================================= 124cdf0e10cSrcweir 125cdf0e10cSrcweir}; }; }; }; 126cdf0e10cSrcweir 127cdf0e10cSrcweir/*============================================================================= 128cdf0e10cSrcweir 129cdf0e10cSrcweir=============================================================================*/ 130cdf0e10cSrcweir#endif 131