public final class MatchingAttributeName extends Object
This class models the way in which an IElementProcessor
can match an element by one of
its attributes.
It allows the definition of a matching for a specific attribute with a specific prefix (usually that of the dialect including the processor), for every attribute with a specific prefix, and also for simply every attribute.
Objects of this class are normally built by the constructors of the processors or their extended abstract processor classes.
Modifier and Type | Method and Description |
---|---|
static MatchingAttributeName |
forAllAttributes(TemplateMode templateMode) |
static MatchingAttributeName |
forAllAttributesWithPrefix(TemplateMode templateMode,
String matchingAllAttributesWithPrefix) |
static MatchingAttributeName |
forAttributeName(TemplateMode templateMode,
AttributeName matchingAttributeName) |
String |
getMatchingAllAttributesWithPrefix() |
AttributeName |
getMatchingAttributeName() |
TemplateMode |
getTemplateMode() |
boolean |
isMatchingAllAttributes() |
boolean |
matches(AttributeName attributeName) |
String |
toString() |
public static MatchingAttributeName forAttributeName(TemplateMode templateMode, AttributeName matchingAttributeName)
public static MatchingAttributeName forAllAttributesWithPrefix(TemplateMode templateMode, String matchingAllAttributesWithPrefix)
public static MatchingAttributeName forAllAttributes(TemplateMode templateMode)
public TemplateMode getTemplateMode()
public AttributeName getMatchingAttributeName()
public String getMatchingAllAttributesWithPrefix()
public boolean isMatchingAllAttributes()
public boolean matches(AttributeName attributeName)
Copyright © 2017 The THYMELEAF team. All rights reserved.