Package org.thymeleaf.processor.element
Class MatchingElementName
java.lang.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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final ElementNameprivate final TemplateMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMatchingElementName(TemplateMode templateMode, ElementName matchingElementName, String matchingAllElementsWithPrefix, boolean matchingAllElements) -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchingElementNameforAllElements(TemplateMode templateMode) static MatchingElementNameforAllElementsWithPrefix(TemplateMode templateMode, String matchingAllElementsWithPrefix) static MatchingElementNameforElementName(TemplateMode templateMode, ElementName matchingElementName) booleanbooleanmatches(ElementName elementName) toString()
-
Field Details
-
templateMode
-
matchingElementName
-
matchingAllElementsWithPrefix
-
matchingAllElements
private final boolean matchingAllElements
-
-
Constructor Details
-
MatchingElementName
private MatchingElementName(TemplateMode templateMode, ElementName matchingElementName, String matchingAllElementsWithPrefix, boolean matchingAllElements)
-
-
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
-