org.thymeleaf.processor
Class AttributeNameProcessorMatcher

Object
  extended by org.thymeleaf.processor.AttributeNameProcessorMatcher
All Implemented Interfaces:
IAttributeNameProcessorMatcher, IProcessorMatcher<NestableAttributeHolderNode>

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, Map<String,String> attributeValuesByNameFilter)
           
AttributeNameProcessorMatcher(String attributeName, String elementNameFilter, String filterAttributeName, String filterAttributeValue)
           
 
Method Summary
 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.
 
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,
                                     Map<String,String> attributeValuesByNameFilter)
Method Detail

getAttributeNames

public String[] getAttributeNames(ProcessorMatchingContext context)
Specified by:
getAttributeNames in interface IAttributeNameProcessorMatcher

getElementNameFilter

public String getElementNameFilter()

getAttributeValuesByNameFilter

public 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<NestableAttributeHolderNode>
Parameters:
node - the node to be matched
context - the matching context
Returns:
true if the node matches, false if not.

appliesTo

public Class<? extends NestableAttributeHolderNode> 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<NestableAttributeHolderNode>
Returns:
the type of node (subclass of Node) this matcher applies to.


Copyright © 2014 The THYMELEAF team. All Rights Reserved.