
/* **************************************************************************

  $Archive: /njcl_v2/src/com/novell/utility/naming/EmptyNamingEnumerator.java $
  $Revision: 3 $
  $Modtime: 8/11/99 1:15p $
 
  Copyright (c) 1998 Novell, Inc.  All Rights Reserved.

  THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  CRIMINAL AND CIVIL LIABILITY.

****************************************************************************/

package com.novell.utility.naming;


import java.util.NoSuchElementException;

import javax.naming.NamingEnumeration;
import javax.naming.NamingException;


/**@internal
 *
 */
public class EmptyNamingEnumerator implements NamingEnumeration
{
   public boolean hasMoreElements ()
   {
      return false;
   }

   public boolean hasMore ()
   {
      return false;
   }

   public Object nextElement ()
   {
      throw new NoSuchElementException ();
   }

   public Object next ()
   {
      throw new NoSuchElementException ();
   }

   public void close ()
      throws NamingException
   {
   }

} /* EmptyNamingEnumerator */


