public class TagMatcher extends Object implements PathExpression
| Modifier and Type | Field and Description |
|---|---|
protected Predicate<XMLEvent> |
elementPredicate |
| Constructor and Description |
|---|
TagMatcher() |
TagMatcher(Predicate<XMLEvent> xmlElementPred) |
| Modifier and Type | Method and Description |
|---|---|
static Predicate<XMLEvent> |
attr(Predicate<String> attrNamePredicate,
Predicate<String> valuePredicate) |
Predicate<XMLEvent> |
getElementPredicate() |
static Predicate<XMLEvent> |
hasAttribute(String name,
boolean ignoreCase) |
static Predicate<XMLEvent> |
nameEquals(String name) |
static Predicate<XMLEvent> |
nameEqualsIgnoreCase(String name) |
static Predicate<XMLEvent> |
nameMatches(String name) |
void |
setElementPredicate(Predicate<XMLEvent> elementPredicate) |
boolean |
validate(XEventPath path)
Проверка значение
|
public boolean validate(XEventPath path)
Predicatevalidate in interface Predicate<XEventPath>path - Значениеpublic static Predicate<XMLEvent> attr(Predicate<String> attrNamePredicate, Predicate<String> valuePredicate)
Copyright © 2018. All rights reserved.