public final class StandardAttrAttrProcessor extends AbstractStandardAttributeModifierAttrProcessor
<img src="../../images/gtvglogo.png" th:attr="src=@{/images/gtvglogo.png},title=#{logo},alt=#{logo}" />
The above will set the src, title, and alt attributes to the results of each of their respective expressions.
AbstractAttributeModifierAttrProcessor.ModificationType| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_NAME |
static int |
ATTR_PRECEDENCE |
| Constructor and Description |
|---|
StandardAttrAttrProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractAttributeModifierAttrProcessor.ModificationType |
getModificationType(Arguments arguments,
Element element,
String attributeName,
String newAttributeName) |
int |
getPrecedence() |
protected boolean |
removeAttributeIfEmpty(Arguments arguments,
Element element,
String attributeName,
String newAttributeName) |
getModifiedAttributeValues, recomputeProcessorsAfterExecutiondoAdditionalProcess, processAttribute, shouldRemoveAttributedoProcess, getMatchercompareTo, getMessage, getMessageForProcessor, getMessageForTemplate, processpublic static final int ATTR_PRECEDENCE
public static final String ATTR_NAME
public int getPrecedence()
getPrecedence in class AbstractProcessorprotected AbstractAttributeModifierAttrProcessor.ModificationType getModificationType(Arguments arguments, Element element, String attributeName, String newAttributeName)
getModificationType in class AbstractAttributeModifierAttrProcessorprotected boolean removeAttributeIfEmpty(Arguments arguments, Element element, String attributeName, String newAttributeName)
removeAttributeIfEmpty in class AbstractAttributeModifierAttrProcessorCopyright © 2016 The THYMELEAF team. All rights reserved.