org.thymeleaf.processor
Class DocumentNodeProcessorMatcher

Object
  extended by org.thymeleaf.processor.DocumentNodeProcessorMatcher
All Implemented Interfaces:
IDocumentNodeProcessorMatcher, IProcessorMatcher<Document>

public final class DocumentNodeProcessorMatcher
extends Object
implements IDocumentNodeProcessorMatcher

Basic implementation of IDocumentNodeProcessorMatcher.

Since:
2.0.13
Author:
Daniel Fernández

Constructor Summary
DocumentNodeProcessorMatcher()
           
 
Method Summary
 Class<? extends Document> 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

DocumentNodeProcessorMatcher

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


Copyright © 2013 The THYMELEAF team. All Rights Reserved.