org.thymeleaf.processor.attr
Class AbstractAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor
Direct Known Subclasses:
AbstractAttributeModifierAttrProcessor, AbstractChildrenModifierAttrProcessor, AbstractConditionalFixedValueAttrProcessor, AbstractConditionalVisibilityAttrProcessor, AbstractFragmentAttrProcessor, AbstractIterationAttrProcessor, AbstractLocalVariableDefinitionAttrProcessor, AbstractNoOpAttrProcessor, AbstractRemovalAttrProcessor, AbstractSelectionTargetAttrProcessor, AbstractStandardTextInlinerAttrProcessor

public abstract class AbstractAttrProcessor
extends AbstractProcessor

Since:
2.0.0
Author:
Daniel Fernández

Constructor Summary
AbstractAttrProcessor(IAttributeNameProcessorMatcher matcher)
           
AbstractAttrProcessor(String attributeName)
           
 
Method Summary
protected  ProcessorResult doProcess(Arguments arguments, ProcessorMatchingContext processorMatchingContext, Node node)
           
 IProcessorMatcher<? extends Element> getMatcher()
           Returns the matcher (IProcessorMatcher) that defines the applicability of this processor.
protected abstract  ProcessorResult processAttribute(Arguments arguments, Element element, String attributeName)
           
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, getPrecedence, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAttrProcessor

public AbstractAttrProcessor(String attributeName)

AbstractAttrProcessor

public AbstractAttrProcessor(IAttributeNameProcessorMatcher matcher)
Method Detail

getMatcher

public final IProcessorMatcher<? extends Element> getMatcher()
Description copied from interface: IProcessor

Returns the matcher (IProcessorMatcher) that defines the applicability of this processor.

Returns:
the matcher.

doProcess

protected final ProcessorResult doProcess(Arguments arguments,
                                          ProcessorMatchingContext processorMatchingContext,
                                          Node node)
Specified by:
doProcess in class AbstractProcessor

processAttribute

protected abstract ProcessorResult processAttribute(Arguments arguments,
                                                    Element element,
                                                    String attributeName)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.