org.jdom.filter
public class ElementFilter extends AbstractFilter
Element
objects.Constructor and Description |
---|
ElementFilter()
Select only the Elements.
|
ElementFilter(Namespace namespace)
Select only the Elements with the supplied Namespace.
|
ElementFilter(java.lang.String name)
Select only the Elements with the supplied name in any Namespace.
|
ElementFilter(java.lang.String name,
Namespace namespace)
Select only the Elements with the supplied name and Namespace.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns whether the two filters are equivalent (i.e. the
matching names and namespace are equivalent).
|
int |
hashCode() |
boolean |
matches(java.lang.Object obj)
Check to see if the object matches a predefined set of rules.
|
and, negate, or
public ElementFilter()
public ElementFilter(java.lang.String name)
name
- The name of the Element.public ElementFilter(Namespace namespace)
namespace
- The namespace the Element lives in.public ElementFilter(java.lang.String name, Namespace namespace)
name
- The name of the Element.namespace
- The namespace the Element lives in.public boolean matches(java.lang.Object obj)
obj
- The object to verify.true
if the objected matched a predfined
set of rules.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare againstpublic int hashCode()
hashCode
in class java.lang.Object
Copyright © 2007 Jason Hunter, Brett McLaughlin. All Rights Reserved.