Class WildPathMatcher

java.lang.Object
sk.antons.json.match.wild.WildPathMatcher
All Implemented Interfaces:
PathMatcher

public class WildPathMatcher extends Object implements PathMatcher
Check path with provided sequence of string values. Double asterix character can be used for any subpath in path. Single asterix and question mark can be used for substrings in path element. ["items-*", "**", "name"] can match paths in length >=2 starting with items-<something> and ending with name. ( /items-12/foo/bar/name)
Author:
antons
  • Constructor Details

    • WildPathMatcher

      public WildPathMatcher(List<String> path)
    • WildPathMatcher

      public WildPathMatcher(String... path)
  • Method Details