org.thymeleaf.standard.processor.attr
Class StandardRemoveAttrProcessor

Object
  extended by org.thymeleaf.processor.AbstractProcessor
      extended by org.thymeleaf.processor.attr.AbstractAttrProcessor
          extended by org.thymeleaf.processor.attr.AbstractMarkupRemovalAttrProcessor
              extended by org.thymeleaf.standard.processor.attr.StandardRemoveAttrProcessor
All Implemented Interfaces:
Comparable<IProcessor>, IProcessor

public final class StandardRemoveAttrProcessor
extends AbstractMarkupRemovalAttrProcessor

Removes a piece of this template from the final result.

If this attribute's value is all, both the containing tag and it's children will be removed. If the value is body, only the tag's children will be removed. If the value is tag, the containing tag will be removed, but not it's children. If the value is all-but-first, then all but the first child of the containing tag will be removed.

Since:
1.0
Author:
Daniel Fernández

Nested Class Summary
 
Nested classes/interfaces inherited from class org.thymeleaf.processor.attr.AbstractMarkupRemovalAttrProcessor
AbstractMarkupRemovalAttrProcessor.RemovalType
 
Field Summary
static String ATTR_NAME
           
static int ATTR_PRECEDENCE
           
static String VALUE_ALL
           
static String VALUE_ALL_BUT_FIRST
           
static String VALUE_BODY
           
static String VALUE_NONE
           
static String VALUE_TAG
           
 
Constructor Summary
StandardRemoveAttrProcessor()
           
 
Method Summary
 int getPrecedence()
           
protected  AbstractMarkupRemovalAttrProcessor.RemovalType getRemovalType(Arguments arguments, Element element, String attributeName)
           
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractMarkupRemovalAttrProcessor
processAttribute
 
Methods inherited from class org.thymeleaf.processor.attr.AbstractAttrProcessor
doProcess, getMatcher
 
Methods inherited from class org.thymeleaf.processor.AbstractProcessor
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_PRECEDENCE

public static final int ATTR_PRECEDENCE
See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values

VALUE_ALL

public static final String VALUE_ALL
See Also:
Constant Field Values

VALUE_ALL_BUT_FIRST

public static final String VALUE_ALL_BUT_FIRST
See Also:
Constant Field Values

VALUE_TAG

public static final String VALUE_TAG
See Also:
Constant Field Values

VALUE_BODY

public static final String VALUE_BODY
See Also:
Constant Field Values

VALUE_NONE

public static final String VALUE_NONE
Since:
2.1.0
See Also:
Constant Field Values
Constructor Detail

StandardRemoveAttrProcessor

public StandardRemoveAttrProcessor()
Method Detail

getPrecedence

public int getPrecedence()
Specified by:
getPrecedence in class AbstractProcessor

getRemovalType

protected AbstractMarkupRemovalAttrProcessor.RemovalType getRemovalType(Arguments arguments,
                                                                        Element element,
                                                                        String attributeName)
Specified by:
getRemovalType in class AbstractMarkupRemovalAttrProcessor


Copyright © 2013 The THYMELEAF team. All Rights Reserved.