| Package | Description |
|---|---|
| de.aristaflow.adept2.model.filter |
This package contains classes that model a system of filters that can be applied
to specially annotated classes.
|
| Modifier and Type | Method and Description |
|---|---|
Attribute |
ContainsFilter.getAttribute()
Returns the attribute the filter is applied to.
|
Attribute |
ComparisonFilter.getLeftHandSide()
Retrieves the attribute to be compared
|
Attribute |
AttributeFactory.selectAttribute(java.lang.String primitiveMethod)
Finishes an attribute by adding the supplied primitive method
to the method call path and generating an Attribute object
|
Attribute |
AttributeFactory.selectAttribute(java.lang.String primitiveMethod,
java.io.Serializable... parameters)
The same as
AttributeFactory.selectAttribute(String) but selecting by passing
the given parameters to the method. |
Attribute |
AttributeFactory.selectAttributeAndCast(java.lang.String primitiveMethod,
java.lang.Class<?> desiredType)
Finishes an attribute by adding the supplied primitive method
to the method call path and generating an Attribute object.
|
Attribute |
AttributeFactory.selectAttributeAndCast(java.lang.String primitiveMethod,
java.lang.Class<?> desiredType,
java.io.Serializable... parameters)
The same as
AttributeFactory.selectAttributeAndCast(String, Class) but selecting
by passing the given parameters to the method. |
| Modifier and Type | Method and Description |
|---|---|
ComparisonFilter |
FilterFactory.createComparisonFilter(Attribute attr,
ComparisonOperator operator,
java.lang.Comparable<?> compareValue)
Creates a filter that matches when a comparison of an attribute to a constant
value succeeds.
|
ConstPositionFilter |
FilterFactory.createConstPositionFilter(Attribute attr,
Filter filter,
ComparisonOperator operator,
int position)
Creates a filter that matches when comparison between the position of the
first object in the list returned by the attribute matching the filter and the specified
integer succeeds.
|
ContainsAllFilter |
FilterFactory.createContainsAllFilter(Attribute attr,
Filter filter,
java.util.Collection<java.io.Serializable> allObjects)
Creates a filter that matches when all of the objects in the allObjects collection
matching the specified filter are also contained in the collection
returned by the attribute (i.e. if {o "in" allObjects | filter.matches(o)} is a subset
of the attribute value)
|
ContainsFilter |
FilterFactory.createContainsAnyFilter(Attribute attr,
Filter filter)
Creates a filter that matches when any of the objects in the collection
returned by the specified attribute match the specified filter
(analogous to a existential quantifier)
|
ContainsFilter |
FilterFactory.createContainsOnlyFilter(Attribute attr,
Filter filter)
Creates a filter that matches when all of the objects in the collection
returned by the specified attribute match the specified filter
(analogous to a universal quantifier)
|
TwoFiltersPositionFilter |
FilterFactory.createTwoFiltersPositionFilter(Attribute attr,
Filter filter1,
ComparisonOperator operator,
Filter filter2)
Creates a filter that matches when comparison between the position of the
first object in the list returned by the attribute matching the first filter and
the first object matching the second filter succeeds.
|