Class MapEntryListIteratorContextImpl<K,V>

Type Parameters:
K - the type of keys maintained by this map
V - the type of mapped values
All Implemented Interfaces:
ContextRoot<ListIterator<Map.Entry<K,V>>>, MapEntryListIteratorContext<K,V>, Serializable, Cloneable, Iterator<Map.Entry<ContextRoot<K>,ContextRoot<V>>>, ListIterator<Map.Entry<ContextRoot<K>,ContextRoot<V>>>, Context, InternalEventContext

public final class MapEntryListIteratorContextImpl<K,V> extends ContextRootImpl<ListIterator<Map.Entry<K,V>>> implements MapEntryListIteratorContext<K,V>
Wrapper interface bridging the gap between Context and ListIterator Map.Entry describing the template data context. This set of routines is used by the template to set and get 'named' data object to pass them to the template engine to use when rendering a template.
See Also:
  • Method Details

    • getInstance

      public static <K, V> MapEntryListIteratorContext<K,V> getInstance(ListIterator<Map.Entry<K,V>> contextObject)
      Global access point to get a instance of the context, ensuring that only one instance of the context exists.
      Type Parameters:
      K - the type of keys maintained by this map
      V - the type of mapped values
      Parameters:
      contextObject - The base context object.
      Returns:
      a instance of the context.
    • add

      public void add(Map.Entry<ContextRoot<K>,ContextRoot<V>> e)
      Unsupported Operation.
      Specified by:
      add in interface ListIterator<K>
    • hasNext

      public boolean hasNext()
      Returns true if this context has more elements when traversing the context in the forward direction.
      Specified by:
      hasNext in interface Iterator<K>
      Specified by:
      hasNext in interface ListIterator<K>
    • hasPrevious

      public boolean hasPrevious()
      Returns true if this context has more elements when traversing the context in the reverse direction.
      Specified by:
      hasPrevious in interface ListIterator<K>
    • next

      public Map.Entry<ContextRoot<K>,ContextRoot<V>> next()
      Returns the next element in the context and advances the cursor position.
      Specified by:
      next in interface Iterator<K>
      Specified by:
      next in interface ListIterator<K>
    • nextIndex

      public int nextIndex()
      Returns the index of the element that would be returned by a subsequent call to next().
      Specified by:
      nextIndex in interface ListIterator<K>
    • previous

      public Map.Entry<ContextRoot<K>,ContextRoot<V>> previous()
      Returns the previous element in the context and moves the cursor position backwards.
      Specified by:
      previous in interface ListIterator<K>
    • previousIndex

      public int previousIndex()
      Returns the index of the element that would be returned by a subsequent call to previous().
      Specified by:
      previousIndex in interface ListIterator<K>
    • remove

      public void remove()
      Unsupported Operation.
      Specified by:
      remove in interface Iterator<K>
      Specified by:
      remove in interface ListIterator<K>
    • set

      public void set(Map.Entry<ContextRoot<K>,ContextRoot<V>> e)
      Unsupported Operation.
      Specified by:
      set in interface ListIterator<K>
    • pushCurrentTemplateName

      public void pushCurrentTemplateName(String arg0)
    • popCurrentTemplateName

      public void popCurrentTemplateName()
    • getCurrentTemplateName

      public String getCurrentTemplateName()
    • getTemplateNameStack

      public String[] getTemplateNameStack()
    • pushCurrentMacroName

      public void pushCurrentMacroName(String arg0)
    • popCurrentMacroName

      public void popCurrentMacroName()
    • getCurrentMacroName

      public String getCurrentMacroName()
    • getCurrentMacroCallDepth

      public int getCurrentMacroCallDepth()
    • getMacroNameStack

      public String[] getMacroNameStack()
    • icacheGet

      public IntrospectionCacheData icacheGet(Object arg0)
    • icachePut

      public void icachePut(Object arg0, IntrospectionCacheData arg1)
    • setCurrentResource

      public void setCurrentResource(Resource arg0)
    • getCurrentResource

      public Resource getCurrentResource()
    • setMacroLibraries

      public void setMacroLibraries(List<Template> arg0)
    • getMacroLibraries

      public List<Template> getMacroLibraries()
    • attachEventCartridge

      public EventCartridge attachEventCartridge(EventCartridge arg0)
      Specified by:
      attachEventCartridge in interface InternalEventContext
    • getEventCartridge

      public EventCartridge getEventCartridge()
      Specified by:
      getEventCartridge in interface InternalEventContext