public interface ElementMatcher<T extends CoreElement>
| Modifier and Type | Field and Description |
|---|---|
static ElementMatcher<CoreElement> |
ANY
Matches any
CoreElement. |
static ElementMatcher<CoreNSAwareElement> |
BY_LOCAL_NAME
Matches
CoreNSAwareElement nodes by local name. |
static ElementMatcher<CoreElement> |
BY_NAME
Matches elements (of any kind) by tag name.
|
static ElementMatcher<CoreNSAwareElement> |
BY_NAMESPACE_URI
Matches
CoreNSAwareElement nodes by namespace URI. |
static ElementMatcher<CoreNSAwareElement> |
BY_QNAME
Matches
CoreNSAwareElement nodes by qualified name, i.e. namespace URI and local name. |
static final ElementMatcher<CoreElement> ANY
CoreElement.static final ElementMatcher<CoreNSAwareElement> BY_QNAME
CoreNSAwareElement nodes by qualified name, i.e. namespace URI and local name.static final ElementMatcher<CoreNSAwareElement> BY_NAMESPACE_URI
CoreNSAwareElement nodes by namespace URI.static final ElementMatcher<CoreNSAwareElement> BY_LOCAL_NAME
CoreNSAwareElement nodes by local name.static final ElementMatcher<CoreElement> BY_NAME
boolean matches(T element, String namespaceURI, String name)
namespaceURI and
name parameters are those passed to
CoreParentNode#coreGetElements(Axis, Class, ElementMatcher, String, String, ExceptionTranslator, Semantics).element - the element to checknamespaceURI - see abovename - see abovetrue if the element matches, false otherwiseCopyright © The Apache Software Foundation. All Rights Reserved.