Package sk.antons.json.match.wild
Class WildPathMatcher
java.lang.Object
sk.antons.json.match.wild.WildPathMatcher
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WildPathMatcherstatic WildPathMatcherstatic WildPathMatcherReturns result of match
-
Constructor Details
-
WildPathMatcher
-
WildPathMatcher
-
-
Method Details
-
instance
-
instance
-
fromPath
-
match
Description copied from interface:PathMatcherReturns result of match- Specified by:
matchin interfacePathMatcher- Parameters:
currentpath- path to be checkedcurrentvalue- value to be checked (be prepare for null values for traversal parsers)- Returns:
- result of match operation.
-
tryMatch
-