org.thymeleaf.processor
Class TextNodeProcessorMatcher

Object
  extended by org.thymeleaf.processor.TextNodeProcessorMatcher
All Implemented Interfaces:
IProcessorMatcher<AbstractTextNode>, ITextNodeProcessorMatcher

public final class TextNodeProcessorMatcher
extends Object
implements ITextNodeProcessorMatcher

Implementation of ITextNodeProcessorMatcher that matches every node extending from AbstractTextNode, this is, Text and CDATASection nodes.

Since:
2.0.0
Author:
Daniel Fernández

Constructor Summary
TextNodeProcessorMatcher()
           
 
Method Summary
 Class<? extends AbstractTextNode> 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextNodeProcessorMatcher

public TextNodeProcessorMatcher()
Method Detail

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<AbstractTextNode>
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 AbstractTextNode> 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<AbstractTextNode>
Returns:
the type of node (subclass of Node) this matcher applies to.


Copyright © 2013 The THYMELEAF team. All Rights Reserved.