<s> package org . eclipse . jdt . internal . core . jdom ; import java . util . Enumeration ; import org . eclipse . jdt . core . jdom . * ; class SiblingEnumeration implements Enumeration { protected IDOMNode fCurrentElement ; SiblingEnumeration ( IDOMNode child ) { this . fCurrentElement = child ; } public boolean hasMoreElements ( ) { return this . fCurrentElement != null ; } public Object nextElement ( ) { IDOMNode curr = this . fCurrentElement ; if ( curr != null ) { this . fCurrentElement = this . fCurrentElement . getNextNode ( ) ; } return curr ; } } </s>