Class FileNameGlobMatcher


  • public class FileNameGlobMatcher
    extends TemplateSourceMatcher
    As opposed to PathGlobMatcher, it only compares the "file name" part (the part after the last /) of the source name with the given glob. For example, the file name glob *.ftlh matches both foo.ftlh and foo/bar.ftlh. With other words, that file name glob is equivalent with the **/*.ftlh) path glob ( PathGlobMatcher).
    Since:
    2.3.24
    • Method Detail

      • matches

        public boolean matches​(java.lang.String sourceName,
                               java.lang.Object templateSource)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • isCaseInsensitive

        public boolean isCaseInsensitive()
      • setCaseInsensitive

        public void setCaseInsensitive​(boolean caseInsensitive)
        Sets if the matching will be case insensitive (UNICODE compliant); default is false.