public final class StandardRemoveAttrProcessor extends AbstractMarkupRemovalAttrProcessor
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.
AbstractMarkupRemovalAttrProcessor.RemovalType
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
StandardRemoveAttrProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence() |
protected AbstractMarkupRemovalAttrProcessor.RemovalType |
getRemovalType(Arguments arguments,
Element element,
String attributeName) |
processAttribute
doProcess, getMatcher
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
public static final int ATTR_PRECEDENCE
public static final String ATTR_NAME
public static final String VALUE_ALL
public static final String VALUE_ALL_BUT_FIRST
public static final String VALUE_TAG
public static final String VALUE_BODY
public static final String VALUE_NONE
public int getPrecedence()
getPrecedence
in class AbstractProcessor
protected AbstractMarkupRemovalAttrProcessor.RemovalType getRemovalType(Arguments arguments, Element element, String attributeName)
getRemovalType
in class AbstractMarkupRemovalAttrProcessor
Copyright © 2016 The THYMELEAF team. All rights reserved.