public class TagMatcher extends Object implements PathExpression
| Modifier and Type | Field and Description |
|---|---|
protected xyz.cofe.collection.Predicate<XMLEvent> |
elementPredicate |
| Constructor and Description |
|---|
TagMatcher() |
TagMatcher(xyz.cofe.collection.Predicate<XMLEvent> xmlElementPred) |
| Modifier and Type | Method and Description |
|---|---|
static xyz.cofe.collection.Predicate<XMLEvent> |
attr(xyz.cofe.collection.Predicate<String> attrNamePredicate,
xyz.cofe.collection.Predicate<String> valuePredicate) |
xyz.cofe.collection.Predicate<XMLEvent> |
getElementPredicate() |
static xyz.cofe.collection.Predicate<XMLEvent> |
hasAttribute(String name,
boolean ignoreCase) |
static xyz.cofe.collection.Predicate<XMLEvent> |
nameEquals(String name) |
static xyz.cofe.collection.Predicate<XMLEvent> |
nameEqualsIgnoreCase(String name) |
static xyz.cofe.collection.Predicate<XMLEvent> |
nameMatches(String name) |
void |
setElementPredicate(xyz.cofe.collection.Predicate<XMLEvent> elementPredicate) |
boolean |
validate(XEventPath path) |
protected xyz.cofe.collection.Predicate<XMLEvent> elementPredicate
public TagMatcher()
public TagMatcher(xyz.cofe.collection.Predicate<XMLEvent> xmlElementPred)
public xyz.cofe.collection.Predicate<XMLEvent> getElementPredicate()
public void setElementPredicate(xyz.cofe.collection.Predicate<XMLEvent> elementPredicate)
public boolean validate(XEventPath path)
validate in interface xyz.cofe.collection.Predicate<XEventPath>public static xyz.cofe.collection.Predicate<XMLEvent> hasAttribute(String name, boolean ignoreCase)
public static xyz.cofe.collection.Predicate<XMLEvent> attr(xyz.cofe.collection.Predicate<String> attrNamePredicate, xyz.cofe.collection.Predicate<String> valuePredicate)
public static xyz.cofe.collection.Predicate<XMLEvent> nameEqualsIgnoreCase(String name)
Copyright © 2017. All rights reserved.