org.thymeleaf.processor
Class AttributeNameProcessorMatcher
Object
org.thymeleaf.processor.AttributeNameProcessorMatcher
- All Implemented Interfaces:
- IAttributeNameProcessorMatcher, IProcessorMatcher<Element>
public final class AttributeNameProcessorMatcher
- extends Object
- implements IAttributeNameProcessorMatcher
- Since:
- 2.0.0
- Author:
- Daniel Fernández
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeNameProcessorMatcher
public AttributeNameProcessorMatcher(String attributeName)
AttributeNameProcessorMatcher
public AttributeNameProcessorMatcher(String attributeName,
String elementNameFilter)
AttributeNameProcessorMatcher
public AttributeNameProcessorMatcher(String attributeName,
String elementNameFilter,
String filterAttributeName,
String filterAttributeValue)
AttributeNameProcessorMatcher
public AttributeNameProcessorMatcher(String attributeName,
String elementNameFilter,
java.util.Map<String,String> attributeValuesByNameFilter)
getAttributeName
public String getAttributeName(ProcessorMatchingContext context)
- Specified by:
getAttributeName
in interface IAttributeNameProcessorMatcher
getElementNameFilter
public String getElementNameFilter()
getAttributeValuesByNameFilter
public java.util.Map<String,String> getAttributeValuesByNameFilter()
matches
public boolean matches(Node node,
ProcessorMatchingContext context)
- Description copied from interface:
IProcessorMatcher
Try to match the node, using the specified matching context.
- Specified by:
matches
in interface IProcessorMatcher<Element>
- Parameters:
node
- the node to be matchedcontext
- the matching context
- Returns:
- true if the node matches, false if not.
appliesTo
public final Class<? extends Element> appliesTo()
- Description copied from interface:
IProcessorMatcher
Returns the type of Node this matcher applies to (and therefore the type
of Node that processors with this matcher will apply to).
- Specified by:
appliesTo
in interface IProcessorMatcher<Element>
- Returns:
- the type of node (subclass of Node) this matcher applies to.
Copyright © 2012 The THYMELEAF team. All Rights Reserved.