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)".
Constructor and Description |
---|
StandardFragmentSignatureNodeReferenceChecker(Configuration configuration,
String dialectPrefix,
String fragmentAttributeName) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkReference(Node node,
String referenceValue)
Check whether the node passed as argument matches the specified reference value.
|
Configuration |
getConfiguration() |
String |
getDialectPrefix() |
String |
getFragmentAttributeName() |
public StandardFragmentSignatureNodeReferenceChecker(Configuration configuration, String dialectPrefix, String fragmentAttributeName)
public Configuration getConfiguration()
public String getDialectPrefix()
public String getFragmentAttributeName()
public boolean checkReference(Node node, String referenceValue)
DOMSelector.INodeReferenceChecker
Check whether the node passed as argument matches the specified reference value.
node
- the node to be checked.referenceValue
- the reference value expected to check.Copyright © 2017 The THYMELEAF team. All rights reserved.