Package org.thymeleaf.processor.element
Class MatchingAttributeName
java.lang.Object
org.thymeleaf.processor.element.MatchingAttributeName
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.
- Since:
- 3.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Stringprivate final AttributeNameprivate final TemplateMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMatchingAttributeName(TemplateMode templateMode, AttributeName matchingAttributeName, String matchingAllAttributesWithPrefix, boolean matchingAllAttributes) -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchingAttributeNameforAllAttributes(TemplateMode templateMode) static MatchingAttributeNameforAllAttributesWithPrefix(TemplateMode templateMode, String matchingAllAttributesWithPrefix) static MatchingAttributeNameforAttributeName(TemplateMode templateMode, AttributeName matchingAttributeName) booleanbooleanmatches(AttributeName attributeName) toString()
-
Field Details
-
templateMode
-
matchingAttributeName
-
matchingAllAttributesWithPrefix
-
matchingAllAttributes
private final boolean matchingAllAttributes
-
-
Constructor Details
-
MatchingAttributeName
private MatchingAttributeName(TemplateMode templateMode, AttributeName matchingAttributeName, String matchingAllAttributesWithPrefix, boolean matchingAllAttributes)
-
-
Method Details
-
forAttributeName
public static MatchingAttributeName forAttributeName(TemplateMode templateMode, AttributeName matchingAttributeName) -
forAllAttributesWithPrefix
public static MatchingAttributeName forAllAttributesWithPrefix(TemplateMode templateMode, String matchingAllAttributesWithPrefix) -
forAllAttributes
-
getTemplateMode
-
getMatchingAttributeName
-
getMatchingAllAttributesWithPrefix
-
isMatchingAllAttributes
public boolean isMatchingAllAttributes() -
matches
-
toString
-