Class JsonContextImpl

All Implemented Interfaces:
ObjectContext<Map.Entry<String,Object>>, ContextRoot<Map.Entry<String,Object>>, JsonContext, Serializable, Cloneable, Context, InternalEventContext

public final class JsonContextImpl extends ObjectContextImpl<Map.Entry<String,Object>> implements JsonContext
Class 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 JsonContext getInstance(Map.Entry<String,Object> contextObject, JsonRootContext parent, List<String> parentGroupings)
      Global access point to get a instance of the context, ensuring that only one instance of the context exists.
      Parameters:
      parent - the context parent.
      parentGroupings - the context parent grouping.
      contextObject - the context entry.
      Returns:
      a instance of the context.
    • 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