public class PathQuery
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String[] |
expression |
protected boolean |
included |
protected boolean |
wildcard |
Constructor and Description |
---|
PathQuery(java.lang.String expression,
boolean included) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
boolean |
isIncluded()
Returns
true if this query indicates that matching
properties should be included. |
boolean |
isWildcard()
Returns
true if this query contains a wildcard. |
boolean |
matches(Path path)
Returns
true if path matches the query. |
java.lang.String |
toString() |
protected final java.lang.String[] expression
protected final boolean wildcard
protected final boolean included
public java.lang.String toString()
toString
in class java.lang.Object
public boolean matches(Path path)
true
if path matches the query.public boolean isWildcard()
true
if this query contains a wildcard.public boolean isIncluded()
true
if this query indicates that matching
properties should be included.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2003-present Jodd Team