org.thymeleaf.standard.expression
Class FragmentSignatureUtils

Object
  extended by org.thymeleaf.standard.expression.FragmentSignatureUtils

public final class FragmentSignatureUtils
extends Object

Since:
2.1.0
Author:
Daniel Fernández

Method Summary
static FragmentSignature parseFragmentSignature(Configuration configuration, String input)
           
static Map<String,Object> processParameters(FragmentSignature fragmentSignature, Map<String,Object> specifiedParameters)
           Processes a set of parameters that have been specified for a fragment signature.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseFragmentSignature

public static FragmentSignature parseFragmentSignature(Configuration configuration,
                                                       String input)

processParameters

public static Map<String,Object> processParameters(FragmentSignature fragmentSignature,
                                                   Map<String,Object> specifiedParameters)

Processes a set of parameters that have been specified for a fragment signature.

This processing matches the specified parameters against the ones in the signature, allowing the specified ones (usually coming from a fragment selection like th:include) to be nameless, so that their values are matched to their corresponding variable name during this parameter processing operation.

The resulting processed parameters are typically applied as local variables to the nodes of a selected fragment.

Parameters:
fragmentSignature - the signature parameters should be processed against
specifiedParameters - the set of specified parameters
Returns:
the processed set of parameters, ready to be applied as local variables to the fragment's nodes.


Copyright © 2013 The THYMELEAF team. All Rights Reserved.