R
- The return type of this visitor's methods. Use
Void
for visitors that do not need to return
results.P
- The type of the additional parameter to this visitor's methods.
Use Void
for visitors that do not need an
additional parameter.F
- The type of the field definitions in this visitor's methods.public interface QueryFilterVisitor<R,P,F>
QueryFilter
s, in the style of the visitor design
pattern.
Classes implementing this interface can query filters in a type-safe manner. When a visitor is passed to a filter's accept method, the corresponding visit method most applicable to that filter is invoked.
Modifier and Type | Method and Description |
---|---|
R |
visitAndFilter(P p,
List<QueryFilter<F>> subFilters)
Visits an
and filter. |
R |
visitBooleanLiteralFilter(P p,
boolean value)
Visits a boolean literal filter.
|
R |
visitContainsFilter(P p,
F field,
Object valueAssertion)
Visits a
contains filter. |
R |
visitEqualsFilter(P p,
F field,
Object valueAssertion)
Visits a
equality filter. |
R |
visitExtendedMatchFilter(P p,
F field,
String operator,
Object valueAssertion)
Visits a
comparison filter. |
R |
visitGreaterThanFilter(P p,
F field,
Object valueAssertion)
Visits a
greater than filter. |
R |
visitGreaterThanOrEqualToFilter(P p,
F field,
Object valueAssertion)
Visits a
greater than or equal to filter. |
R |
visitLessThanFilter(P p,
F field,
Object valueAssertion)
Visits a
less than filter. |
R |
visitLessThanOrEqualToFilter(P p,
F field,
Object valueAssertion)
Visits a
less than or equal to filter. |
R |
visitNotFilter(P p,
QueryFilter<F> subFilter)
Visits a
not filter. |
R |
visitOrFilter(P p,
List<QueryFilter<F>> subFilters)
Visits an
or filter. |
R |
visitPresentFilter(P p,
F field)
Visits a
present filter. |
R |
visitStartsWithFilter(P p,
F field,
Object valueAssertion)
Visits a
starts with filter. |
R visitAndFilter(P p, List<QueryFilter<F>> subFilters)
and
filter.
Implementation note: for the purposes of matching, an empty
sub-filter list should always evaluate to true
.
p
- A visitor specified parameter.subFilters
- The unmodifiable list of sub-filters.R visitBooleanLiteralFilter(P p, boolean value)
p
- A visitor specified parameter.value
- The boolean literal value.R visitContainsFilter(P p, F field, Object valueAssertion)
contains
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.R visitEqualsFilter(P p, F field, Object valueAssertion)
equality
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.R visitExtendedMatchFilter(P p, F field, String operator, Object valueAssertion)
comparison
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.operator
- The operator to use for the comparison, which will not be one of
the core operator names.valueAssertion
- The value assertion.R visitGreaterThanFilter(P p, F field, Object valueAssertion)
greater than
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.R visitGreaterThanOrEqualToFilter(P p, F field, Object valueAssertion)
greater than or equal to
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.R visitLessThanFilter(P p, F field, Object valueAssertion)
less than
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.R visitLessThanOrEqualToFilter(P p, F field, Object valueAssertion)
less than or equal to
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.R visitNotFilter(P p, QueryFilter<F> subFilter)
not
filter.p
- A visitor specified parameter.subFilter
- The sub-filter.R visitOrFilter(P p, List<QueryFilter<F>> subFilters)
or
filter.
Implementation note: for the purposes of matching, an empty
sub-filter list should always evaluate to false
.
p
- A visitor specified parameter.subFilters
- The unmodifiable list of sub-filters.R visitPresentFilter(P p, F field)
present
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.R visitStartsWithFilter(P p, F field, Object valueAssertion)
starts with
filter.p
- A visitor specified parameter.field
- A definition of the field to be compared.valueAssertion
- The value assertion.Copyright 2010-2017 ForgeRock AS.