Package org.jdom2.filter
Class AbstractFilter<T>
java.lang.Object
org.jdom2.filter.AbstractFilter<T>
- Type Parameters:
T- The Generic type of content returned by this Filter
- All Implemented Interfaces:
Serializable,Filter<T>
- Direct Known Subclasses:
AttributeFilter,ContentFilter,ElementFilter
Partial implementation of
Filter.- Author:
- Bradley S. Huffman, Rolf Lear
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates an ANDing filter.Filter the input list keeping only the items that match the Filter.final booleanCheck to see if the object matches a predefined set of rules.final Filter<?>negate()Creates an 'inverse' filterCreates an ORing filter<R> Filter<R>This is similar to the and(Filter) method except the generic type is different.
-
Constructor Details
-
AbstractFilter
public AbstractFilter()
-
-
Method Details
-
matches
Description copied from interface:FilterCheck to see if the object matches a predefined set of rules. -
filter
Description copied from interface:FilterFilter the input list keeping only the items that match the Filter. -
negate
Description copied from interface:FilterCreates an 'inverse' filter -
or
Description copied from interface:FilterCreates an ORing filter -
and
Description copied from interface:FilterCreates an ANDing filter. The generic type of the result is the same as this Filter. -
refine
Description copied from interface:FilterThis is similar to the and(Filter) method except the generic type is different.- Specified by:
refinein interfaceFilter<T>- Type Parameters:
R- The Generic type of the returned data is taken from the input instance.- Parameters:
filter- The filter to refine our results with.- Returns:
- A Filter that requires content to both match our instance and the refining instance, but the generic type of the retuned data is based on the refining instance, not this instance.
-