public class FileExtensionMatcher extends TemplateSourceMatcher
Constructor and Description |
---|
FileExtensionMatcher(java.lang.String extension) |
Modifier and Type | Method and Description |
---|---|
FileExtensionMatcher |
caseInsensitive(boolean caseInsensitive)
Fluid API variation of
setCaseInsensitive(boolean) |
boolean |
isCaseInsensitive() |
boolean |
matches(java.lang.String sourceName,
java.lang.Object templateSource) |
void |
setCaseInsensitive(boolean caseInsensitive)
Sets if the matching will be case insensitive (UNICODE compliant); default is
true . |
public FileExtensionMatcher(java.lang.String extension)
extension
- The file extension (without the initial dot). Can't contain there characters:
'/'
, '*'
, '?'
. May contains '.'
, but can't start with it.public boolean matches(java.lang.String sourceName, java.lang.Object templateSource) throws java.io.IOException
java.io.IOException
public boolean isCaseInsensitive()
public void setCaseInsensitive(boolean caseInsensitive)
true
.public FileExtensionMatcher caseInsensitive(boolean caseInsensitive)
setCaseInsensitive(boolean)