Package org.jdom2.filter
Class ElementFilter
- All Implemented Interfaces:
Serializable
,Filter<Element>
A Filter that only matches
Element
objects.- Author:
- Jools Enticknap, Bradley S. Huffman
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSelect only the Elements.ElementFilter
(String name) Select only the Elements with the supplied name in any Namespace.ElementFilter
(String name, Namespace namespace) Select only the Elements with the supplied name and Namespace.ElementFilter
(Namespace namespace) Select only the Elements with the supplied Namespace. -
Method Summary
-
Constructor Details
-
ElementFilter
public ElementFilter()Select only the Elements. -
ElementFilter
Select only the Elements with the supplied name in any Namespace.- Parameters:
name
- The name of the Element.
-
ElementFilter
Select only the Elements with the supplied Namespace.- Parameters:
namespace
- The namespace the Element lives in.
-
ElementFilter
Select only the Elements with the supplied name and Namespace.- Parameters:
name
- The name of the Element.namespace
- The namespace the Element lives in.
-
-
Method Details
-
filter
Check to see if the object matches a predefined set of rules.- Parameters:
content
- The object to verify.- Returns:
true
if the objected matched a predfined set of rules.
-
equals
Returns whether the two filters are equivalent (i.e. the matching names and namespace are equivalent). -
hashCode
public int hashCode() -
toString
-