public class ElementsFilter
extends org.jdom2.filter.AbstractFilter<org.jdom2.Element>
Element
objects.Constructor and Description |
---|
ElementsFilter()
Select only the Elements.
|
ElementsFilter(org.jdom2.Namespace namespace)
Select only the Elements with the supplied Namespace.
|
ElementsFilter(java.lang.String[] names)
Select only the Elements with the supplied names in any Namespace.
|
ElementsFilter(java.lang.String[] names,
org.jdom2.Namespace namespace)
Select only the Elements with the supplied names 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).
|
org.jdom2.Element |
filter(java.lang.Object content)
Check to see if the object matches a predefined set of rules.
|
int |
hashCode() |
java.lang.String |
toString() |
public ElementsFilter()
public ElementsFilter(java.lang.String[] names)
names
- The names of the Element.public ElementsFilter(org.jdom2.Namespace namespace)
namespace
- The namespace the Element lives in.public ElementsFilter(java.lang.String[] names, org.jdom2.Namespace namespace)
names
- The names of the Elements.namespace
- The namespace the Elements live in.public org.jdom2.Element filter(java.lang.Object content)
content
- 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
- Object to compare againstpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object