public final class AttributeNameProcessorMatcher extends Object implements IAttributeNameProcessorMatcher
Constructor and Description |
---|
AttributeNameProcessorMatcher(String attributeName) |
AttributeNameProcessorMatcher(String attributeName,
String elementNameFilter) |
AttributeNameProcessorMatcher(String attributeName,
String elementNameFilter,
Map<String,String> attributeValuesByNameFilter) |
AttributeNameProcessorMatcher(String attributeName,
String elementNameFilter,
String filterAttributeName,
String filterAttributeValue) |
Modifier and Type | Method and Description |
---|---|
Class<? extends NestableAttributeHolderNode> |
appliesTo()
Returns the type of Node this matcher applies to (and therefore the type
of Node that processors with this matcher will apply to).
|
String[] |
getAttributeNames(ProcessorMatchingContext context) |
Map<String,String> |
getAttributeValuesByNameFilter() |
String |
getElementNameFilter() |
boolean |
matches(Node node,
ProcessorMatchingContext context)
Try to match the node, using the specified matching context.
|
public AttributeNameProcessorMatcher(String attributeName)
public AttributeNameProcessorMatcher(String attributeName, String elementNameFilter)
public AttributeNameProcessorMatcher(String attributeName, String elementNameFilter, String filterAttributeName, String filterAttributeValue)
public String[] getAttributeNames(ProcessorMatchingContext context)
getAttributeNames
in interface IAttributeNameProcessorMatcher
public String getElementNameFilter()
public boolean matches(Node node, ProcessorMatchingContext context)
IProcessorMatcher
Try to match the node, using the specified matching context.
matches
in interface IProcessorMatcher<NestableAttributeHolderNode>
node
- the node to be matchedcontext
- the matching contextpublic Class<? extends NestableAttributeHolderNode> appliesTo()
IProcessorMatcher
Returns the type of Node this matcher applies to (and therefore the type of Node that processors with this matcher will apply to).
appliesTo
in interface IProcessorMatcher<NestableAttributeHolderNode>
Copyright © 2017 The THYMELEAF team. All rights reserved.