The ElementDeclEnumeration class contains the following methods:
hasMoreElements determines if there are any more matching elements. nextElement retrieves the next matching element.