Package org.thymeleaf.util
Class PatternSpec
Object
org.thymeleaf.util.PatternSpec
Utility class of internal use for holding the patterns that certain artifacts
(usually template names) must match for obtaining some consideration. For
example, it is used at many ITemplateResolver
implementations for holding the patterns that match a template to a specific
template mode.
Note a class with this name existed since 1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPattern
(String pattern) void
boolean
isEmpty()
boolean
void
setPatterns
(Set<String> newPatterns)
-
Constructor Details
-
PatternSpec
public PatternSpec()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
getPatterns
-
setPatterns
-
addPattern
-
clearPatterns
public void clearPatterns() -
matches
-