org.jdom.filter
Class ElementFilter
- Filter, Serializable
public class ElementFilter
A Filter that only matches
Element
objects.
$Revision: 1.18 $, $Date: 2004/09/07 06:37:20 $- Jools Enticknap
- Bradley S. Huffman
boolean | equals(Object obj) - Returns whether the two filters are equivalent (i.e. the
matching names and namespace are equivalent).
|
int | hashCode()
|
boolean | matches(Object obj) - Check to see if the object matches a predefined set of rules.
|
ElementFilter
public ElementFilter()
Select only the Elements.
ElementFilter
public ElementFilter(String name)
Select only the Elements with the supplied name in any Namespace.
name
- The name of the Element.
ElementFilter
public ElementFilter(String name,
Namespace namespace)
Select only the Elements with the supplied name and Namespace.
name
- The name of the Element.namespace
- The namespace the Element lives in.
ElementFilter
public ElementFilter(Namespace namespace)
Select only the Elements with the supplied Namespace.
namespace
- The namespace the Element lives in.
equals
public boolean equals(Object obj)
Returns whether the two filters are equivalent (i.e. the
matching names and namespace are equivalent).
obj
- the object to compare against
- whether the two filters are equal
hashCode
public int hashCode()
matches
public boolean matches(Object obj)
Check to see if the object matches a predefined set of rules.
- matches in interface Filter
obj
- The object to verify.
true
if the objected matched a predfined
set of rules.
Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.