org.thymeleaf.context
Class DialectAwareProcessingContext

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

public class DialectAwareProcessingContext
extends AbstractDialectAwareProcessingContext

Basic implementation of AbstractDialectAwareProcessingContext.

Since:
2.0.12
Author:
Daniel Fernández

Field Summary
 
Fields inherited from class org.thymeleaf.context.AbstractProcessingContext
EVAL_SELECTION_TARGET_LOCAL_VARIABLE_NAME
 
Constructor Summary
DialectAwareProcessingContext(AbstractDialectAwareProcessingContext processingContext)
           
DialectAwareProcessingContext(IContext context, Collection<? extends IDialect> dialects)
           
DialectAwareProcessingContext(IContext context, Map<String,Object> localVariables, Collection<? extends IDialect> dialects)
           
DialectAwareProcessingContext(IContext context, Map<String,Object> localVariables, Object selectionTarget, boolean selectionTargetSet, Collection<? extends IDialect> dialects)
           
DialectAwareProcessingContext(IProcessingContext processingContext, Collection<? extends IDialect> dialects)
           
 
Method Summary
 DialectAwareProcessingContext addLocalVariables(Map<String,Object> newVariables)
           Creates a new DialectAwareProcessingContext object by adding some new local variables to the existing map (the rest of the attributes are copied verbatim).
 DialectAwareProcessingContext 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.AbstractDialectAwareProcessingContext
computeExpressionObjects, getExpressionEnhancingDialects
 
Methods inherited from class org.thymeleaf.context.AbstractProcessingContext
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

DialectAwareProcessingContext

public DialectAwareProcessingContext(IContext context,
                                     Collection<? extends IDialect> dialects)

DialectAwareProcessingContext

public DialectAwareProcessingContext(IContext context,
                                     Map<String,Object> localVariables,
                                     Collection<? extends IDialect> dialects)

DialectAwareProcessingContext

public DialectAwareProcessingContext(IContext context,
                                     Map<String,Object> localVariables,
                                     Object selectionTarget,
                                     boolean selectionTargetSet,
                                     Collection<? extends IDialect> dialects)

DialectAwareProcessingContext

public DialectAwareProcessingContext(AbstractDialectAwareProcessingContext processingContext)

DialectAwareProcessingContext

public DialectAwareProcessingContext(IProcessingContext processingContext,
                                     Collection<? extends IDialect> dialects)
Method Detail

addLocalVariables

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

Creates a new DialectAwareProcessingContext 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 DialectAwareProcessingContext 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.