Class PathQuery
java.lang.Object
jodd.json.PathQuery
Path query is used to match properties with some Path.
Query is expressed in dot notation. Each term between the dots
is a property name of a parent. Query may contains wildcard: '*' that
can be used instead of a named term.
Included and excluded path matching works a bit differently. Included query matches all sub-paths. Excluded query is strict and match only paths with the same length.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final String[]protected final booleanprotected final boolean -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
expression
-
wildcard
protected final boolean wildcard -
included
protected final boolean included
-
-
Constructor Details
-
PathQuery
-
-
Method Details
-
toString
-
matches
Returnstrueif path matches the query. -
isWildcard
public boolean isWildcard()Returnstrueif this query contains a wildcard. -
isIncluded
public boolean isIncluded()Returnstrueif this query indicates that matching properties should be included. -
equals
-
hashCode
-