Reflects an IDL sequence and provides dynamic access to instances of that sequence. More...
import "XIdlArray.idl";
Public Member Functions | |
| void | realloc ([inout] any array, [in] long length) raises ( com::sun::star::lang::IllegalArgumentException ) |
| Reallocates the length of the sequence instance. | |
| long | getLen ([in] any array) raises ( com::sun::star::lang::IllegalArgumentException ) |
| Returns the length of the given sequence. | |
| any | get ([in] any aArray, [in] long nIndex) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::ArrayIndexOutOfBoundsException ) |
| Returns element at given index. | |
| void | set ([inout] any aArray, [in] long nIndex, [in] any aNewValue) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::ArrayIndexOutOfBoundsException ) |
| Sets a new value at given index. | |
Public Member Functions inherited from XInterface | |
| any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. | |
| void | acquire () |
| increases the reference counter by one. | |
| void | release () |
| decreases the reference counter by one. | |
Reflects an IDL sequence and provides dynamic access to instances of that sequence.
This interface supports widening conversion when getting or setting elements.
| any get | ( | [in] any | aArray, | |||
| [in] long | nIndex ) | |||||
| raises | ( | com::sun::star::lang::IllegalArgumentException, | ||||
| com::sun::star::lang::ArrayIndexOutOfBoundsException ) | ||||||
Returns element at given index.
| aArray | sequence instance |
| nIndex | index |
| IllegalArgumentException | if the specified object is not a sequence or if the specified object is null |
| ArrayIndexOutOfBoundsException | if the specified index argument is negative, or if it is greater than or equal to the length of the specified sequence. |
| long getLen | ( | [in] any | array | ) | ||
| raises | ( | com::sun::star::lang::IllegalArgumentException ) | ||||
Returns the length of the given sequence.
| array | sequence instance |
| void realloc | ( | [inout] any | array, | |||
| [in] long | length ) | |||||
| raises | ( | com::sun::star::lang::IllegalArgumentException ) | ||||
Reallocates the length of the sequence instance.
| array | sequence instance |
| length | new length of sequence |
| void set | ( | [inout] any | aArray, | |||
| [in] long | nIndex, | |||||
| [in] any | aNewValue ) | |||||
| raises | ( | com::sun::star::lang::IllegalArgumentException, | ||||
| com::sun::star::lang::ArrayIndexOutOfBoundsException ) | ||||||
Sets a new value at given index.
| aArray | sequence instance |
| nIndex | index |
| aNewValue | new value to be set |
| IllegalArgumentException | if the specified object is not a sequence or if the specified object is null |
| ArrayIndexOutOfBoundsException | if the specified index argument is negative, or if it is greater than or equal to the length of the specified sequence. |