org.thymeleaf.context
Class ProcessingContext

Object
  extended by org.thymeleaf.context.AbstractProcessingContext
      extended by org.thymeleaf.context.ProcessingContext
All Implemented Interfaces:
IProcessingContext

public class ProcessingContext
extends AbstractProcessingContext

Basic implementation of AbstractProcessingContext.

Since:
2.0.9
Author:
Daniel Fernández

Field Summary
 
Fields inherited from class org.thymeleaf.context.AbstractProcessingContext
EVAL_SELECTION_TARGET_LOCAL_VARIABLE_NAME
 
Constructor Summary
ProcessingContext(IContext context)
           
ProcessingContext(IContext context, Map<String,Object> localVariables)
           
ProcessingContext(IContext context, Map<String,Object> localVariables, Object selectionTarget, boolean selectionTargetSet)
           
ProcessingContext(IProcessingContext processingContext)
           
 
Method Summary
 ProcessingContext addLocalVariables(Map<String,Object> newVariables)
           Creates a new ProcessingContext object by adding some new local variables to the existing map (the rest of the attributes are copied verbatim).
 ProcessingContext setSelectionTarget(Object selectionTargetObject)
           Creates a new Arguments object by setting a selection target into the processing context, so that selection expressions are executed on it from then on.
 
Methods inherited from class org.thymeleaf.context.AbstractProcessingContext
computeExpressionObjects, getBaseContextVariables, getContext, getExpressionEvaluationRoot, getExpressionObjects, getExpressionSelectionEvaluationRoot, getLocalVariable, getLocalVariables, getSelectionTarget, hasLocalVariable, hasLocalVariables, hasSelectionTarget, mergeNewLocalVariables, unsafeGetLocalVariables
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessingContext

public ProcessingContext(IContext context)

ProcessingContext

public ProcessingContext(IContext context,
                         Map<String,Object> localVariables)

ProcessingContext

public ProcessingContext(IContext context,
                         Map<String,Object> localVariables,
                         Object selectionTarget,
                         boolean selectionTargetSet)

ProcessingContext

public ProcessingContext(IProcessingContext processingContext)
Method Detail

addLocalVariables

public ProcessingContext addLocalVariables(Map<String,Object> newVariables)

Creates a new ProcessingContext object by adding some new local variables to the existing map (the rest of the attributes are copied verbatim).

Parameters:
newVariables - the new variables
Returns:
the new Arguments object

setSelectionTarget

public ProcessingContext setSelectionTarget(Object selectionTargetObject)

Creates a new Arguments object by setting a selection target into the processing context, so that selection expressions are executed on it from then on.

Parameters:
selectionTargetObject - the selection target object to be set.
Returns:
the new ProcessingContext object


Copyright © 2013 The THYMELEAF team. All Rights Reserved.