|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jayway.jsonpath.Criteria
public class Criteria
| Method Summary | |
|---|---|
Criteria |
all(Collection<?> c)
The all operator is similar to $in, but instead of matching any value in the specified array all values in the array must be matched. |
Criteria |
all(Object... o)
The all operator is similar to $in, but instead of matching any value in the specified array all values in the array must be matched. |
Criteria |
and(String key)
Static factory method to create a Criteria using the provided key |
Criteria |
andOperator(Criteria... criteria)
Creates an 'and' criteria using the $and operator for all of the provided criteria |
Criteria |
eq(Object o)
Creates a criterion using equality |
Criteria |
exists(boolean b)
Check for existence (or lack thereof) of a field. |
String |
getKey()
|
Criteria |
gt(Object o)
Creates a criterion using the > operator |
Criteria |
gte(Object o)
Creates a criterion using the >= operator |
Criteria |
in(Collection<?> c)
The in operator is analogous to the SQL IN modifier, allowing you
to specify an array of possible matches. |
Criteria |
in(Object... o)
The in operator is analogous to the SQL IN modifier, allowing you
to specify an array of possible matches. |
Criteria |
is(Object o)
Creates a criterion using equality |
Criteria |
lt(Object o)
Creates a criterion using the < operator |
Criteria |
lte(Object o)
Creates a criterion using the <= operator |
boolean |
matches(Map<String,Object> map)
Checks if this criteria matches the given map |
Criteria |
ne(Object o)
Creates a criterion using the != operator |
Criteria |
nin(Collection<?> c)
The nin operator is similar to $in except that it selects objects for
which the specified field does not have any value in the specified array. |
Criteria |
nin(Object... o)
The nin operator is similar to $in except that it selects objects for
which the specified field does not have any value in the specified array. |
Criteria |
regex(Pattern pattern)
Creates a criterion using a Regex |
Criteria |
size(int s)
The size operator matches any array with the specified number of elements. |
Criteria |
type(Class<?> t)
The $type operator matches values based on their Java type. |
static Criteria |
where(String key)
Static factory method to create a Criteria using the provided key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getKey()
public boolean matches(Map<String,Object> map)
map - map to check
public static Criteria where(String key)
key - filed name
public Criteria and(String key)
key - ads new filed to criteria
public Criteria is(Object o)
o -
public Criteria eq(Object o)
o -
public Criteria ne(Object o)
o -
public Criteria lt(Object o)
o -
public Criteria lte(Object o)
o -
public Criteria gt(Object o)
o -
public Criteria gte(Object o)
o -
public Criteria in(Object... o)
in operator is analogous to the SQL IN modifier, allowing you
to specify an array of possible matches.
o - the values to match against
public Criteria in(Collection<?> c)
in operator is analogous to the SQL IN modifier, allowing you
to specify an array of possible matches.
c - the collection containing the values to match against
public Criteria nin(Object... o)
nin operator is similar to $in except that it selects objects for
which the specified field does not have any value in the specified array.
o - the values to match against
public Criteria nin(Collection<?> c)
nin operator is similar to $in except that it selects objects for
which the specified field does not have any value in the specified array.
c - the values to match against
public Criteria all(Object... o)
all operator is similar to $in, but instead of matching any value in the specified array all values in the array must be matched.
o -
public Criteria all(Collection<?> c)
all operator is similar to $in, but instead of matching any value in the specified array all values in the array must be matched.
c -
public Criteria size(int s)
size operator matches any array with the specified number of elements.
s -
public Criteria exists(boolean b)
b -
public Criteria type(Class<?> t)
t -
public Criteria regex(Pattern pattern)
pattern -
public Criteria andOperator(Criteria... criteria)
criteria -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||