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