psdi.app.recontask.engine

Class LikePatternMatcher

  • java.lang.Object
    • psdi.app.recontask.engine.LikePatternMatcher


  • public class LikePatternMatcher
    extends java.lang.Object
    Matches a String object to a pattern emulating SQL LIKE
    • Constructor Summary

      Constructors 
      Constructor and Description
      LikePatternMatcher(java.lang.String pattern)
      The pattern can contain the following wildcards _ or ? for a single character match % or * for 0 to any number of characters
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean match(java.lang.String value) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LikePatternMatcher

        public LikePatternMatcher(java.lang.String pattern)
        The pattern can contain the following wildcards
      • _ or ? for a single character match
      • % or * for 0 to any number of characters

        Duplicate wildcards are translated to a literal match to one wildcard (for example, ** is matched for the character *)

        If the string has no wildcard at all, % is appended in front and at the end

  • Method Detail

    • match

      public boolean match(java.lang.String value)
      See Also:
      comment for the pattern rules