interface XEnumeration in module com::sun::star::container:: |
interface XEnumeration : com::sun::star::uno::XInterface ;
provides functionality to enumerate the contents of a container.
An object that implements the XEnumeration interface
generates a series of elements, one at a time. Successive calls to
the XEnumeration::nextElement
method return successive
elements of the series.
For example (Java), to print all elements of a vector aVect :
for ( XEnumeration xEnum = aVect.elements() ; xEnum.hasMoreElements() ; ) { System.out.println( xEnum.nextElement() ); }
If the object changed, the behavior of the enumeration is not specified. This is not a remote interface.
Method Summary |
|
hasMoreElements | tests whether this enumeration contains more elements. |
nextElement | |
Method Details |
|||
|
Copyright 2001 OpenOffice.org Foundation. All Rights Reserved.