org.thymeleaf.processor.attr
Class AbstractAttributeModifierAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor
Direct Known Subclasses:
AbstractSingleAttributeModifierAttrProcessor, AbstractStandardAttributeModifierAttrProcessor, AbstractStandardSingleValueMultipleAttributeModifierAttrProcessor

public abstract class AbstractAttributeModifierAttrProcessor
extends AbstractAttrProcessor

Since:
1.0
Author:
Daniel Fernández

Nested Class Summary
static class AbstractAttributeModifierAttrProcessor.ModificationType
           
 
Constructor Summary
AbstractAttributeModifierAttrProcessor(IAttributeNameProcessorMatcher matcher)
           
AbstractAttributeModifierAttrProcessor(String attributeName)
           
 
Method Summary
protected abstract  AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(Arguments arguments, Element element, String attributeName, String newAttributeName)
           
protected abstract  java.util.Map<String,String> getModifiedAttributeValues(Arguments arguments, Element element, String attributeName)
           
 ProcessorResult processAttribute(Arguments arguments, Element element, String attributeName)
           
protected abstract  boolean recomputeProcessorsAfterExecution(Arguments arguments, Element element, String attributeName)
           
protected abstract  boolean removeAttributeIfEmpty(Arguments arguments, Element element, String attributeName, String newAttributeName)
           
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
doProcess, getMatcher
 
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

AbstractAttributeModifierAttrProcessor

public AbstractAttributeModifierAttrProcessor(String attributeName)

AbstractAttributeModifierAttrProcessor

public AbstractAttributeModifierAttrProcessor(IAttributeNameProcessorMatcher matcher)
Method Detail

processAttribute

public final ProcessorResult processAttribute(Arguments arguments,
                                              Element element,
                                              String attributeName)
Specified by:
processAttribute in class AbstractAttrProcessor

getModifiedAttributeValues

protected abstract java.util.Map<String,String> getModifiedAttributeValues(Arguments arguments,
                                                                           Element element,
                                                                           String attributeName)

getModificationType

protected abstract AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(Arguments arguments,
                                                                                               Element element,
                                                                                               String attributeName,
                                                                                               String newAttributeName)

removeAttributeIfEmpty

protected abstract boolean removeAttributeIfEmpty(Arguments arguments,
                                                  Element element,
                                                  String attributeName,
                                                  String newAttributeName)

recomputeProcessorsAfterExecution

protected abstract boolean recomputeProcessorsAfterExecution(Arguments arguments,
                                                             Element element,
                                                             String attributeName)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.