public class ElementNameFilter extends AElementFilter
ALL, NONE
Constructor and Description |
---|
ElementNameFilter(IStringFilter tagNameFilter) |
ElementNameFilter(java.lang.String tagName)
Creates a filter for the given name or name pattern (if "?" or "*" used).
|
Modifier and Type | Method and Description |
---|---|
protected IStringFilter |
getTagNameFilter() |
protected boolean |
matchesElement(Element element)
Returns whether or not the given element matches this filter.
|
matches
public ElementNameFilter(IStringFilter tagNameFilter)
public ElementNameFilter(java.lang.String tagName)
tagName
- The name or name pattern (must not be null).protected boolean matchesElement(Element element)
AElementFilter
matchesElement
in class AElementFilter
element
- The element to check against the filter.protected IStringFilter getTagNameFilter()