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:
AbstractAssertionAttrProcessor, AbstractAttributeModifierAttrProcessor, AbstractChildrenModifierAttrProcessor, AbstractConditionalFixedValueAttrProcessor, AbstractConditionalVisibilityAttrProcessor, AbstractFragmentHandlingAttrProcessor, AbstractIterationAttrProcessor, AbstractLocalVariableDefinitionAttrProcessor, AbstractMarkupRemovalAttrProcessor, AbstractNoOpAttrProcessor, AbstractRemovalAttrProcessor, AbstractSelectionTargetAttrProcessor, AbstractStandardTextInlinerAttrProcessor

public abstract class AbstractAttrProcessor
extends AbstractProcessor

Since:
2.0.0
Author:
Daniel Fernández

Constructor Summary
protected AbstractAttrProcessor(IAttributeNameProcessorMatcher matcher)
           
protected AbstractAttrProcessor(String attributeName)
           
 
Method Summary
protected  ProcessorResult doProcess(Arguments arguments, ProcessorMatchingContext processorMatchingContext, Node node)
           
 IProcessorMatcher<? extends NestableAttributeHolderNode> 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

protected AbstractAttrProcessor(String attributeName)

AbstractAttrProcessor

protected AbstractAttrProcessor(IAttributeNameProcessorMatcher matcher)
Method Detail

getMatcher

public final IProcessorMatcher<? extends NestableAttributeHolderNode> 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 © 2013 The THYMELEAF team. All Rights Reserved.