com.oxygenxml.validate.nvdl
Class ContextMap.Enumerator

java.lang.Object
  extended by com.oxygenxml.validate.nvdl.ContextMap.Enumerator
All Implemented Interfaces:
Enumeration
Enclosing class:
ContextMap

private static class ContextMap.Enumerator
extends Object
implements Enumeration

Creates an Enumeration implementation that enumerates all the modes stored in this context map and in the nested context maps.


Field Summary
private  Object otherValue
          Store this context map other value.
private  Object rootValue
          Store this context map root value.
private  Enumeration subMaps
          Stores the ContextMap objects from the nameTable.
private  Enumeration subMapValues
          Stores the enumeration of modes of the current subMap.
 
Constructor Summary
private ContextMap.Enumerator(ContextMap map)
           
 
Method Summary
 boolean hasMoreElements()
          True if we have more elements.
 Object nextElement()
          Get the next element (mode in this case).
private  void prep()
          Advance to the next context map values in subMapValues and to the next element in subMap enumeration, if needed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rootValue

private Object rootValue
Store this context map root value.


otherValue

private Object otherValue
Store this context map other value.


subMapValues

private Enumeration subMapValues
Stores the enumeration of modes of the current subMap.


subMaps

private final Enumeration subMaps
Stores the ContextMap objects from the nameTable.

Constructor Detail

ContextMap.Enumerator

private ContextMap.Enumerator(ContextMap map)
Method Detail

prep

private void prep()
Advance to the next context map values in subMapValues and to the next element in subMap enumeration, if needed.


hasMoreElements

public boolean hasMoreElements()
True if we have more elements.

Specified by:
hasMoreElements in interface Enumeration

nextElement

public Object nextElement()
Get the next element (mode in this case).

Specified by:
nextElement in interface Enumeration