public class AttributeFilter extends AbstractFilter<Attribute>
Attribute
objects.Constructor and Description |
---|
AttributeFilter()
Select only the Elements.
|
AttributeFilter(Namespace namespace)
Select only the Attributes with the supplied Namespace.
|
AttributeFilter(String name)
Select only the Elements with the supplied name in any Namespace.
|
AttributeFilter(String name,
Namespace namespace)
Select only the Attributes 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).
|
Attribute |
filter(Object content)
Check to see if the Content matches a predefined set of rules.
|
int |
hashCode() |
public AttributeFilter()
public AttributeFilter(String name)
name
- The name of the Element.public AttributeFilter(Namespace namespace)
namespace
- The namespace the Attribute lives in.public Attribute filter(Object content)
content
- The Content to verify.true
if the objected matched a predfined
set of rules.public boolean equals(Object obj)
Copyright ? 2015 Jason Hunter, Brett McLaughlin. All Rights Reserved.