org.thymeleaf.processor
Class AttributeNameProcessorMatcher

Object
  extended by 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

Constructor Summary
AttributeNameProcessorMatcher(String attributeName)
           
AttributeNameProcessorMatcher(String attributeName, String elementNameFilter)
           
AttributeNameProcessorMatcher(String attributeName, String elementNameFilter, java.util.Map<String,String> attributeValuesByNameFilter)
           
AttributeNameProcessorMatcher(String attributeName, String elementNameFilter, String filterAttributeName, String filterAttributeValue)
           
 
Method Summary
 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).
 String getAttributeName(ProcessorMatchingContext context)
           
 java.util.Map<String,String> getAttributeValuesByNameFilter()
           
 String getElementNameFilter()
           
 boolean matches(Node node, ProcessorMatchingContext context)
           Try to match the node, using the specified matching context.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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 matched
context - 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.