Package sk.antons.json.match
Class SimplePathMatcher
java.lang.Object
sk.antons.json.match.SimplePathMatcher
- All Implemented Interfaces:
PathMatcher
Check path with provided sequence of string values. Asterix character
can be used for any name in path.
["items", "*", "name"] can match paths in length 3 starting with items
and ending with name.
- Author:
- antons
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimplePathMatcher
-
SimplePathMatcher
-
-
Method Details
-
instance
-
instance
-
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.
-