Java XML – JDOM2 – Filters
JDOM2 has three methods that accepts Filters while obtaining data. The three methods are <E extends Content> List<E> getContent(Filter<E> filter); <E extends Content> List<E> removeContent(Filter<E> filter); <E extends Content> IteratorIterable<E> getDescendants(Filter<E> filter); Filters are also extensively used in the JDOM2 XPath API, especially to ‘coerce the xpath result data in to the generic-typed results’. See … Read more