All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----org.jdom.filter.ElementFilter
The ElementFilter
when applied to a FilterList
will only allow Elements
to be visible.
Filter out the Elements.
Filter out the Elements with the supplied Namespace.
Filter out the Elements with the supplied name in any Namespace.
Filter out the Elements with the supplied name and Namespace.
Only allow the adding of Element objects.
Check to see if the object can be removed from the list.
Returns true if object is instance of ElementFilter and has the same parent Element, name, and namespace as this filter.
Check to see if the object matches a predefined set of rules.
protected String name
protected Namespace namespace
public ElementFilter()
Filter out the Elements.
public ElementFilter(String name)
Filter out the Elements with the supplied name in any Namespace.
public ElementFilter(Namespace namespace)
Filter out the Elements with the supplied Namespace.
public ElementFilter(String name, Namespace namespace)
Filter out the Elements with the supplied name and Namespace.
public boolean canAdd(Object obj)
Only allow the adding of Element objects.
true
if the object can be added.
public boolean canRemove(Object obj)
Check to see if the object can be removed from the list.
true
if the object can be removed.
public boolean matches(Object obj)
Check to see if the object matches a predefined set of rules.
true
if the objected matched a predfined
set of rules.
public boolean equals(Object obj)
Returns true if object is instance of ElementFilter and has the same parent Element, name, and namespace as this filter.
true
if the Filters are equal
All Packages Class Hierarchy This Package Previous Next Index