public final class MatchingElementName extends Object
This class models the way in which an IElementProcessor
can match an element by its name.
It allows the definition of a matching for a specific element with a specific prefix (usually that of the dialect including the processor), for every element with a specific prefix, and also for simply every element.
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 MatchingElementName |
forAllElements(TemplateMode templateMode) |
static MatchingElementName |
forAllElementsWithPrefix(TemplateMode templateMode,
String matchingAllElementsWithPrefix) |
static MatchingElementName |
forElementName(TemplateMode templateMode,
ElementName matchingElementName) |
String |
getMatchingAllElementsWithPrefix() |
ElementName |
getMatchingElementName() |
TemplateMode |
getTemplateMode() |
boolean |
isMatchingAllElements() |
boolean |
matches(ElementName elementName) |
String |
toString() |
public static MatchingElementName forElementName(TemplateMode templateMode, ElementName matchingElementName)
public static MatchingElementName forAllElementsWithPrefix(TemplateMode templateMode, String matchingAllElementsWithPrefix)
public static MatchingElementName forAllElements(TemplateMode templateMode)
public TemplateMode getTemplateMode()
public ElementName getMatchingElementName()
public String getMatchingAllElementsWithPrefix()
public boolean isMatchingAllElements()
public boolean matches(ElementName elementName)
Copyright © 2017 The THYMELEAF team. All rights reserved.