The ElementEnumeration class contains the following methods:
hasMoreElements determines if there are any more matching elements.
nextElement retrieves the next matching element.
reset resets the iterator so that you can again iterate through the elements.