org.thymeleaf.processor
Interface IProcessorMatcher<T extends Node>

All Known Subinterfaces:
IAttributeNameProcessorMatcher, IElementNameProcessorMatcher, ITextNodeProcessorMatcher
All Known Implementing Classes:
AttributeNameProcessorMatcher, ElementNameProcessorMatcher, TextNodeProcessorMatcher

public interface IProcessorMatcher<T extends Node>

Common interface for objects that specify when a processor can be applied to a node.

Since:
2.0.0
Author:
Daniel Fernández

Method Summary
 Class<? extends T> appliesTo()
           Returns the type of Node this matcher applies to (and therefore the type of Node that processors with this matcher will apply to).
 boolean matches(Node node, ProcessorMatchingContext context)
           Try to match the node, using the specified matching context.
 

Method Detail

matches

boolean matches(Node node,
                ProcessorMatchingContext context)

Try to match the node, using the specified matching context.

Parameters:
node - the node to be matched
context - the matching context
Returns:
true if the node matches, false if not.

appliesTo

Class<? extends T> appliesTo()

Returns the type of Node this matcher applies to (and therefore the type of Node that processors with this matcher will apply to).

Returns:
the type of node (subclass of Node) this matcher applies to.


Copyright © 2012 The THYMELEAF team. All Rights Reserved.