Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: container ::
interface XEnumeration
  Description 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.

Methods' Summary
hasMoreElements | tests whether this enumeration contains more elements.
nextElement |

Methods' Details
hasMoreElements
boolean
hasMoreElements();
Description tests whether this enumeration contains more elements.
nextElement
any
nextElement()
raises( | NoSuchElementException, ::com::sun::star::lang::WrappedTargetException );
Returns the next element of this enumeration. Throws NoSuchElementException if no more elements exist. Throws com::sun::star::lang::WrappedTargetException If the implementation has internal reasons for exceptions, then wrap these in a ::com::sun::star::lang::WrappedTargetException exception.

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.