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