org.thymeleaf.standard.processor.attr
Class AbstractStandardConditionalVisibilityAttrProcessor

Object
  extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
      extended by org.thymeleaf.processor.attr.AbstractConditionalVisibilityAttrProcessor
          extended by org.thymeleaf.standard.processor.attr.AbstractStandardConditionalVisibilityAttrProcessor
All Implemented Interfaces:
Comparable<IAttrProcessor>, IAttrProcessor
Direct Known Subclasses:
StandardIfAttrProcessor, StandardUnlessAttrProcessor

public abstract class AbstractStandardConditionalVisibilityAttrProcessor
extends AbstractConditionalVisibilityAttrProcessor

Since:
1.0
Author:
Daniel Fernández

Constructor Summary
AbstractStandardConditionalVisibilityAttrProcessor()
           
 
Method Summary
 Set<Class<? extends IValueProcessor>> getValueProcessorDependencies()
           Return this processor's dependencies.
protected abstract  boolean inverse()
           
protected  boolean isVisible(Arguments arguments, TemplateResolution templateResolution, Document document, Element element, Attr attribute, String attributeName, String attributeValue)
           
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractConditionalVisibilityAttrProcessor
process
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.thymeleaf.processor.attr.IAttrProcessor
getAttributeApplicabilities, getPrecedence
 

Constructor Detail

AbstractStandardConditionalVisibilityAttrProcessor

public AbstractStandardConditionalVisibilityAttrProcessor()
Method Detail

getValueProcessorDependencies

public final Set<Class<? extends IValueProcessor>> getValueProcessorDependencies()
Description copied from interface: IAttrProcessor

Return this processor's dependencies.

The dependencies are the set of value processors (IValueProcessor objects) this attribute processor needs for being executed. This has to be declared for dialect validation purposes at configuration time.

Specified by:
getValueProcessorDependencies in interface IAttrProcessor
Overrides:
getValueProcessorDependencies in class AbstractAttrProcessor
Returns:
the set of value processor dependencies.

isVisible

protected final boolean isVisible(Arguments arguments,
                                  TemplateResolution templateResolution,
                                  Document document,
                                  Element element,
                                  Attr attribute,
                                  String attributeName,
                                  String attributeValue)
Specified by:
isVisible in class AbstractConditionalVisibilityAttrProcessor

inverse

protected abstract boolean inverse()


Copyright © 2011 The THYMELEAF team. All Rights Reserved.