Class MatchPattern

java.lang.Object
org.apache.maven.shared.utils.io.MatchPattern

@Deprecated public class MatchPattern extends Object
Deprecated.
use java.nio.file.DirectoryStream.Filter<T> and related classes

Describes a match target for SelectorUtils.

Significantly more efficient than using strings, since re-evaluation and re-tokenizing is avoided.

Author:
Kristian Rosenvold
  • Method Details

    • matchPath

      public boolean matchPath(String str, boolean isCaseSensitive)
      Deprecated.
      Parameters:
      str - the string to match for
      isCaseSensitive - case sensitive true false otherwise
      Returns:
      true if matches false otherwise
    • matchPatternStart

      public boolean matchPatternStart(String str, boolean isCaseSensitive)
      Deprecated.
      Parameters:
      str - the string to check
      isCaseSensitive - check case sensitive or not
      Returns:
      true in case of matching pattern
    • getTokenizedPathString

      public String[] getTokenizedPathString()
      Deprecated.
      Returns:
      tokenized string
    • startsWith

      public boolean startsWith(String string)
      Deprecated.
      Parameters:
      string - the part which will be checked to start with
      Returns:
      true in case of starting with the string false otherwise
    • fromString

      public static MatchPattern fromString(String source)
      Deprecated.
      Parameters:
      source - the source
      Returns:
      the match pattern