|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom2.filter.AbstractFilter<T>
T
- The Generic type of content returned by this Filterpublic abstract class AbstractFilter<T>
Partial implementation of Filter
.
Constructor Summary | |
---|---|
AbstractFilter()
|
Method Summary | ||
---|---|---|
Filter<T> |
and(Filter<?> filter)
Creates an ANDing filter. |
|
java.util.List<T> |
filter(java.util.List<?> content)
Filter the input list keeping only the items that match the Filter. |
|
boolean |
matches(java.lang.Object content)
Check to see if the object matches a predefined set of rules. |
|
Filter<?> |
negate()
Creates an 'inverse' filter |
|
Filter<? extends Content> |
or(Filter<?> filter)
Creates an ORing filter |
|
|
refine(Filter<R> filter)
This is similar to the and(Filter) method except the generic type is different. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jdom2.filter.Filter |
---|
filter |
Constructor Detail |
---|
public AbstractFilter()
Method Detail |
---|
public final boolean matches(java.lang.Object content)
Filter
matches
in interface Filter<T>
content
- The object to verify.
true
if the object matches a predfined
set of rules.public java.util.List<T> filter(java.util.List<?> content)
Filter
filter
in interface Filter<T>
content
- The content to filter.
public final Filter<?> negate()
Filter
negate
in interface Filter<T>
public final Filter<? extends Content> or(Filter<?> filter)
Filter
or
in interface Filter<T>
filter
- a second Filter to OR with.
public final Filter<T> and(Filter<?> filter)
Filter
and
in interface Filter<T>
filter
- a second Filter to AND with.
public <R> Filter<R> refine(Filter<R> filter)
Filter
refine
in interface Filter<T>
R
- The Generic type of the returned data is taken from the input
instance.filter
- The filter to refine our results with.
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |