Package org.jdom2.filter
Class AttributeFilter
- All Implemented Interfaces:
Serializable
,Filter<Attribute>
A Filter that only matches
Attribute
objects.- Author:
- Rolf Lear
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSelect only the Elements.AttributeFilter
(String name) Select only the Elements with the supplied name in any Namespace.AttributeFilter
(String name, Namespace namespace) Select only the Attributes with the supplied name and Namespace.AttributeFilter
(Namespace namespace) Select only the Attributes with the supplied Namespace. -
Method Summary
-
Constructor Details
-
AttributeFilter
public AttributeFilter()Select only the Elements. -
AttributeFilter
Select only the Elements with the supplied name in any Namespace.- Parameters:
name
- The name of the Element.
-
AttributeFilter
Select only the Attributes with the supplied Namespace.- Parameters:
namespace
- The namespace the Attribute lives in.
-
AttributeFilter
Select only the Attributes with the supplied name and Namespace.- Parameters:
name
- The name of the Attribute.namespace
- The namespace the Attribute lives in.
-
-
Method Details
-
filter
Check to see if the Content matches a predefined set of rules.- Parameters:
content
- The Content 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()
-