public static interface Filter.Builder
Filter
instance
can be obtained using the build()
method.Filter.builder()
Modifier and Type | Method and Description |
---|---|
Filter |
build()
Creates a
Filter instance which uses all filtering criteria assigned to this builder. |
Filter.Builder |
contains(String attributeName,
String value,
boolean caseSensitive)
Retains objects whose textual attribute contains the specified fragment.
|
Filter.Builder |
empty(String attributeName)
Retains objects having an non-empty value for the specified attribute name.
|
Filter.Builder |
equalTo(String attributeName,
boolean value)
Retains objects whose boolean attribute equals the specified value.
|
Filter.Builder |
equalTo(String attributeName,
Date value)
Retains objects whose date attribute equals the specified value.
|
Filter.Builder |
equalTo(String attributeName,
float value)
Retains objects whose real attribute equals the specified value.
|
Filter.Builder |
equalTo(String attributeName,
int value)
Retains objects whose integer attribute equals the specified value.
|
Filter.Builder |
equalTo(String attributeName,
String value)
Retains objects whose textual attribute equals the specified value.
|
Filter.Builder |
excludes(String attributeName,
String value)
Retains objects whose multi-valued attribute does not contain the specified value.
|
Filter.Builder |
greaterThan(String attributeName,
Date value)
Retains objects whose date attribute is strictly higher than the specified value.
|
Filter.Builder |
greaterThan(String attributeName,
float value)
Retains objects whose real attribute is strictly higher than the specified value.
|
Filter.Builder |
greaterThan(String attributeName,
int value)
Retains objects whose integer attribute is strictly higher than the specified value.
|
Filter.Builder |
greaterThan(String attributeName,
String value)
Retains objects whose textual attribute is strictly higher than the specified value.
|
Filter.Builder |
greaterThanOrEqualTo(String attributeName,
Date value)
Retains objects whose date attribute is higher or equal to the specified value.
|
Filter.Builder |
greaterThanOrEqualTo(String attributeName,
float value)
Retains objects whose real attribute is higher or equal to the specified value.
|
Filter.Builder |
greaterThanOrEqualTo(String attributeName,
int value)
Retains objects whose integer attribute is higher or equal to the specified value.
|
Filter.Builder |
greaterThanOrEqualTo(String attributeName,
String value)
Retains objects whose textual attribute is higher or equal to the specified value.
|
Filter.Builder |
includes(String attributeName,
String value)
Retains objects whose multi-valued attribute contains the specified value.
|
Filter.Builder |
lessThan(String attributeName,
Date value)
Retains objects whose date attribute is strictly lower than the specified value.
|
Filter.Builder |
lessThan(String attributeName,
float value)
Retains objects whose real attribute is strictly lower than the specified value.
|
Filter.Builder |
lessThan(String attributeName,
int value)
Retains objects whose integer attribute is strictly lower than the specified value.
|
Filter.Builder |
lessThan(String attributeName,
String value)
Retains objects whose textual attribute is strictly lower than the specified value.
|
Filter.Builder |
lessThanOrEqualTo(String attributeName,
Date value)
Retains objects whose date attribute is lower or equal to the specified value.
|
Filter.Builder |
lessThanOrEqualTo(String attributeName,
float value)
Retains objects whose real attribute is lower or equal to the specified value.
|
Filter.Builder |
lessThanOrEqualTo(String attributeName,
int value)
Retains objects whose integer attribute is lower or equal to the specified value.
|
Filter.Builder |
lessThanOrEqualTo(String attributeName,
String value)
Retains objects whose textual attribute is lower or equal to the specified value.
|
Filter.Builder |
modifiedAfter(Date date)
Retains objects modified after the specified date.
|
Filter.Builder |
notEmpty(String attributeName)
Retains objects whose specified attribute is not set.
|
Filter.Builder |
notEqualTo(String attributeName,
boolean value)
Retains objects whose boolean attribute is not equal to the specified value.
|
Filter.Builder |
notEqualTo(String attributeName,
Date value)
Retains objects whose date attribute is not equal to the specified value.
|
Filter.Builder |
notEqualTo(String attributeName,
float value)
Retains objects whose real attribute is not equal to the specified value.
|
Filter.Builder |
notEqualTo(String attributeName,
int value)
Retains objects whose integer attribute is not equal to the specified value.
|
Filter.Builder |
notEqualTo(String attributeName,
String value)
Retains objects whose textual attribute is not equal to the specified value.
|
Filter.Builder modifiedAfter(Date date)
date
- the minimal modification date an object must have to be accepted by the filter.Filter.Builder empty(String attributeName)
attributeName
- the name of the attribute.Filter.Builder notEmpty(String attributeName)
attributeName
- the name of the attribute.Filter.Builder equalTo(String attributeName, boolean value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder equalTo(String attributeName, Date value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder equalTo(String attributeName, float value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder equalTo(String attributeName, int value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder equalTo(String attributeName, String value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder notEqualTo(String attributeName, boolean value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder notEqualTo(String attributeName, Date value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder notEqualTo(String attributeName, float value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder notEqualTo(String attributeName, int value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder notEqualTo(String attributeName, String value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThan(String attributeName, float value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThan(String attributeName, Date value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThan(String attributeName, int value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThan(String attributeName, String value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThanOrEqualTo(String attributeName, float value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThanOrEqualTo(String attributeName, Date value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThanOrEqualTo(String attributeName, int value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder lessThanOrEqualTo(String attributeName, String value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThan(String attributeName, float value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThan(String attributeName, Date value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThan(String attributeName, int value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThan(String attributeName, String value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThanOrEqualTo(String attributeName, float value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThanOrEqualTo(String attributeName, Date value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThanOrEqualTo(String attributeName, int value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder greaterThanOrEqualTo(String attributeName, String value)
attributeName
- the name of the attribute.value
- the value compared to each object attribute.Filter.Builder contains(String attributeName, String value, boolean caseSensitive)
attributeName
- the name of the attribute.value
- the fragment to look for in the attribute text value.caseSensitive
- true
if the comparison is case sensitive, false
otherwise.Filter.Builder includes(String attributeName, String value)
attributeName
- the name of the multi-valued attribute.value
- the value to look for in the attribute values.Filter.Builder excludes(String attributeName, String value)
attributeName
- the name of the multi-valued attribute.value
- the value to look for in the attribute values.Filter build()
Filter
instance which uses all filtering criteria assigned to this builder.
The created filter can then be assigned to an ItemScope
.Filter
instance.ItemScope.setFilter(Filter)