Package org.thymeleaf.processor.element
Class MatchingElementName
Object
org.thymeleaf.processor.element.MatchingElementName
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.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Method Summary
Modifier and TypeMethodDescriptionstatic MatchingElementName
forAllElements
(TemplateMode templateMode) static MatchingElementName
forAllElementsWithPrefix
(TemplateMode templateMode, String matchingAllElementsWithPrefix) static MatchingElementName
forElementName
(TemplateMode templateMode, ElementName matchingElementName) boolean
boolean
matches
(ElementName elementName) toString()
-
Method Details
-
forElementName
public static MatchingElementName forElementName(TemplateMode templateMode, ElementName matchingElementName) -
forAllElementsWithPrefix
public static MatchingElementName forAllElementsWithPrefix(TemplateMode templateMode, String matchingAllElementsWithPrefix) -
forAllElements
-
getTemplateMode
-
getMatchingElementName
-
getMatchingAllElementsWithPrefix
-
isMatchingAllElements
public boolean isMatchingAllElements() -
matches
-
toString
-