Language
The Free and Open Productivity Suite
:: com :: sun :: star :: container ::
|
unpublished |
interface XStringKeyMap |
|
|
|
- Usage Restrictions
- not published
- Description
- maps strings to anys.
- Since
- OOo 2.3
|
Attributes' Summary |
Count |
the number of elements in the map.
|
Methods' Details |
getValue
- Description
- reads data from the map.
- Parameter aKey
- The key string which should be searched for.
- Returns
- the value matching aKey.
- Throws
- com::sun::star::container::NoSuchElementException
if an element under aKey does not exist.
|
|
hasValue
boolean |
hasValue( |
[in] string |
aKey ); |
- Description
- checks for element existence.
- Parameter aKey
- The key string which should be searched for.
- Returns
- true if an element with key aKey exists.
|
|
insertValue
- Description
- writes data to the map.
- Parameter aKey
- The key string which should be used to store the value.
- Parameter aValue
- The value that should be stored.
- Throws
- com::sun::star::lang::IllegalArgumentException
if the element could not be inserted.
- Throws
- com::sun::star::container::ElementExistException
if there is already a value stored under the key aKey.
|
|
getKeyByIndex
- Description
- obtains the key of an element by index.
- Parameter nIndex
- is the index of the element.
- Returns
- the key string matching the given index.
- Throws
- com::sun::star::lang::IndexOutOfBoundsException
if the specified index is greater than the number of
elements
|
|
getValueByIndex
- Description
- obtains the value of an element by index.
- Parameter nIndex
- is the index of the key.
- Returns
- the value matching the given index.
- Throws
- com::sun::star::lang::IndexOutOfBoundsException
if the specified index is greater than the number of
elements
|
|
Attributes' Details |
Count
[ readonly ] long Count;
- Description
- the number of elements in the map.
|
|
Top of Page
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.