org.thymeleaf.processor.attr
Class AbstractConditionalFixedValueAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.processor.attr.AbstractConditionalFixedValueAttrProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor
Direct Known Subclasses:
AbstractStandardConditionalFixedValueAttrProcessor

public abstract class AbstractConditionalFixedValueAttrProcessor
extends AbstractAttrProcessor

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
AbstractConditionalFixedValueAttrProcessor(IAttributeNameProcessorMatcher matcher)
           
AbstractConditionalFixedValueAttrProcessor(String attributeName)
           
 
Method Summary
protected abstract  String getTargetAttributeFixedValue(Arguments arguments, Element element, String attributeName)
           
protected abstract  String getTargetAttributeName(Arguments arguments, Element element, String attributeName)
           
protected abstract  boolean isVisible(Arguments arguments, Element element, String attributeName)
           
 ProcessorResult processAttribute(Arguments arguments, Element element, String attributeName)
           
protected abstract  boolean recomputeProcessorsAfterExecution(Arguments arguments, Element element, String attributeName)
           
 
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

AbstractConditionalFixedValueAttrProcessor

public AbstractConditionalFixedValueAttrProcessor(String attributeName)

AbstractConditionalFixedValueAttrProcessor

public AbstractConditionalFixedValueAttrProcessor(IAttributeNameProcessorMatcher matcher)
Method Detail

processAttribute

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

isVisible

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

getTargetAttributeName

protected abstract String getTargetAttributeName(Arguments arguments,
                                                 Element element,
                                                 String attributeName)

getTargetAttributeFixedValue

protected abstract String getTargetAttributeFixedValue(Arguments arguments,
                                                       Element element,
                                                       String attributeName)

recomputeProcessorsAfterExecution

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


Copyright © 2012 The THYMELEAF team. All Rights Reserved.