public class NameFilter extends AbstractFilter<JElement> implements JElementFilter
Constructor and Description |
---|
NameFilter(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(JElement element)
Tests if a specified element should be matched.
|
targetType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
targetType
public NameFilter(String name)
public boolean accept(JElement element)
JElementFilter
accept
in interface JElementFilter
accept
in interface Filter<JElement>
element
- the element bing testedtrue
if and only if the element should be included in the list; false
otherwise.Copyright © 2010–2018 Jadira Systems. All rights reserved.