public final class ElementNameProcessorMatcher extends Object implements IElementNameProcessorMatcher
Constructor and Description |
---|
ElementNameProcessorMatcher(String elementName) |
ElementNameProcessorMatcher(String elementName,
boolean applyDialectPrefix) |
ElementNameProcessorMatcher(String elementName,
Map<String,String> attributeValuesByNameFilter) |
ElementNameProcessorMatcher(String elementName,
Map<String,String> attributeValuesByNameFilter,
boolean applyDialectPrefix) |
ElementNameProcessorMatcher(String elementName,
String filterAttributeName,
String filterAttributeValue) |
ElementNameProcessorMatcher(String elementName,
String filterAttributeName,
String filterAttributeValue,
boolean applyDialectPrefix) |
Modifier and Type | Method and Description |
---|---|
Class<? extends Element> |
appliesTo()
Returns the type of Node this matcher applies to (and therefore the type
of Node that processors with this matcher will apply to).
|
Map<String,String> |
getAttributeValuesByNameFilter() |
String[] |
getElementNames(ProcessorMatchingContext context) |
boolean |
hasFilter() |
boolean |
matches(Node node,
ProcessorMatchingContext context)
Try to match the node, using the specified matching context.
|
public ElementNameProcessorMatcher(String elementName)
public ElementNameProcessorMatcher(String elementName, boolean applyDialectPrefix)
public ElementNameProcessorMatcher(String elementName, String filterAttributeName, String filterAttributeValue)
public ElementNameProcessorMatcher(String elementName, String filterAttributeName, String filterAttributeValue, boolean applyDialectPrefix)
public ElementNameProcessorMatcher(String elementName, Map<String,String> attributeValuesByNameFilter)
public String[] getElementNames(ProcessorMatchingContext context)
getElementNames
in interface IElementNameProcessorMatcher
public boolean hasFilter()
public boolean matches(Node node, ProcessorMatchingContext context)
IProcessorMatcher
Try to match the node, using the specified matching context.
matches
in interface IProcessorMatcher<Element>
node
- the node to be matchedcontext
- the matching contextpublic Class<? extends Element> 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<Element>
Copyright © 2016 The THYMELEAF team. All rights reserved.