org.thymeleaf.standard.fragment
Class StandardFragmentSignatureNodeReferenceChecker

Object
  extended by org.thymeleaf.dom.DOMSelector.AbstractNodeReferenceChecker
      extended by org.thymeleaf.standard.fragment.StandardFragmentSignatureNodeReferenceChecker
All Implemented Interfaces:
DOMSelector.INodeReferenceChecker

public final class StandardFragmentSignatureNodeReferenceChecker
extends DOMSelector.AbstractNodeReferenceChecker

Implementation of the DOMSelector.INodeReferenceChecker interface used for looking for standard fragment signature attributes in nodes, and consider the names of the fragments to be reference values.

For example, if the standard fragment signature attribute is th:fragment (which is the default), objects of this class will consider that DOM Selector expressions like myfrag or %myfrag will match th:fragment="myfrag(param1, param2)".

Since:
2.1.0
Author:
Daniel Fernández

Constructor Summary
StandardFragmentSignatureNodeReferenceChecker(Configuration configuration, String dialectPrefix, String fragmentAttributeName)
           
 
Method Summary
 boolean checkReference(Node node, String referenceValue)
           Check whether the node passed as argument matches the specified reference value.
 Configuration getConfiguration()
           
 String getDialectPrefix()
           
 String getFragmentAttributeName()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardFragmentSignatureNodeReferenceChecker

public StandardFragmentSignatureNodeReferenceChecker(Configuration configuration,
                                                     String dialectPrefix,
                                                     String fragmentAttributeName)
Method Detail

getConfiguration

public Configuration getConfiguration()

getDialectPrefix

public String getDialectPrefix()

getFragmentAttributeName

public String getFragmentAttributeName()

checkReference

public boolean checkReference(Node node,
                              String referenceValue)
Description copied from interface: DOMSelector.INodeReferenceChecker

Check whether the node passed as argument matches the specified reference value.

Parameters:
node - the node to be checked.
referenceValue - the reference value expected to check.
Returns:
true if the node matches the reference value, false if not.


Copyright © 2013 The THYMELEAF team. All Rights Reserved.