@FunctionalInterface
public interface AttributePredicate
| Modifier and Type | Field | Description |
|---|---|---|
static AttributePredicate |
ANY_ATTRIBUTE |
|
static AttributePredicate |
IS_EMPTY_ATTRIBUTE |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
accepts(Element element,
java.lang.String name,
java.lang.String value) |
Returns true when the attribute must be kept.
|
static AttributePredicate |
fromNames(java.util.Collection<java.lang.String> names) |
Return an AttributePredicate that returns true when the attribute has a names belonging to a collection.
|
static final AttributePredicate ANY_ATTRIBUTE
static final AttributePredicate IS_EMPTY_ATTRIBUTE
boolean accepts(Element element, java.lang.String name, java.lang.String value)
element - The element containing the attribute.name - The attribute name.value - The attribute value.static AttributePredicate fromNames(java.util.Collection<java.lang.String> names)
names - The collections of names. MUST NOT be null.Copyright © 2018. All rights reserved.