Uses of Interface
org.xmlunit.diff.ElementSelector
-
Packages that use ElementSelector Package Description org.xmlunit.diff Contains XMLUnitDifferenceEnginethat is at the heart of all comparisons as well as supporting interfaces and implementations. -
-
Uses of ElementSelector in org.xmlunit.diff
Classes in org.xmlunit.diff that implement ElementSelector Modifier and Type Class Description classByNameAndTextRecSelectorElementSelectorthat allows two elements to be compared if their name (including namespace URI, if any) and textual content is the same and the same is true for all child elements recursively.classMultiLevelByNameAndTextSelectorElementSelectorthat allows two elements to be compared if their name (including namespace URI, if any) and textual content is the same at a certain level of nesting.Fields in org.xmlunit.diff declared as ElementSelector Modifier and Type Field Description static ElementSelectorElementSelectors. byNameElements with the same local name (and namespace URI - if any) can be compared.static ElementSelectorElementSelectors. byNameAndAllAttributesElements with the same local name (and namespace URI - if any) and attribute values for all attributes can be compared.static ElementSelectorElementSelectors. byNameAndTextElements with the same local name (and namespace URI - if any) and nested text (if any) can be compared.static ElementSelectorElementSelectors. DefaultAlways returns true, i.e. each element can be compared to each other element.Methods in org.xmlunit.diff that return ElementSelector Modifier and Type Method Description static ElementSelectorElementSelectors. and(ElementSelector... selectors)Accepts two elements if all of the given ElementSelectors do.ElementSelectorElementSelectors.ConditionalSelectorBuilder. build()Builds a conditional ElementSelector.static ElementSelectorElementSelectors. byNameAndAllAttributes(Predicate<Attr> attributeFilter)Elements with the same local name (and namespace URI - if any) and attribute values for all attributes can be compared.static ElementSelectorElementSelectors. byNameAndAttributes(String... attribs)Elements with the same local name (and namespace URI - if any) and attribute values for the given attribute names can be compared.static ElementSelectorElementSelectors. byNameAndAttributes(QName... attribs)Elements with the same local name (and namespace URI - if any) and attribute values for the given attribute names can be compared.static ElementSelectorElementSelectors. byNameAndAttributesControlNS(String... attribs)Elements with the same local name (and namespace URI - if any) and attribute values for the given attribute names can be compared.static ElementSelectorElementSelectors. byXPath(String xpath, Map<String,String> prefix2Uri, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. byXPath(String xpath, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. byXPath(String xpath, XPathEngine xpathEngine, Map<String,String> prefix2Uri, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. byXPath(String xpath, XPathEngine engine, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. conditionalSelector(Predicate<? super Element> predicate, ElementSelector es)Applies the wrapped ElementSelector's logic if and only if the control element matches the given predicate.static ElementSelectorElementSelectors. not(ElementSelector es)Negates another ElementSelector.static ElementSelectorElementSelectors. or(ElementSelector... selectors)Accepts two elements if at least one of the given ElementSelectors does.static ElementSelectorElementSelectors. selectorForElementNamed(String expectedName, ElementSelector es)Applies the wrapped ElementSelector's logic if and only if the control element has the given (local) name.static ElementSelectorElementSelectors. selectorForElementNamed(QName expectedName, ElementSelector es)Applies the wrapped ElementSelector's logic if and only if the control element has the given name.static ElementSelectorElementSelectors. xor(ElementSelector es1, ElementSelector es2)Accepts two elements if exactly on of the given ElementSelectors does.Methods in org.xmlunit.diff with parameters of type ElementSelector Modifier and Type Method Description static ElementSelectorElementSelectors. and(ElementSelector... selectors)Accepts two elements if all of the given ElementSelectors do.static ElementSelectorElementSelectors. byXPath(String xpath, Map<String,String> prefix2Uri, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. byXPath(String xpath, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. byXPath(String xpath, XPathEngine xpathEngine, Map<String,String> prefix2Uri, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. byXPath(String xpath, XPathEngine engine, ElementSelector childSelector)Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelectorElementSelectors. conditionalSelector(Predicate<? super Element> predicate, ElementSelector es)Applies the wrapped ElementSelector's logic if and only if the control element matches the given predicate.ElementSelectors.ConditionalSelectorBuilderElementSelectors.ConditionalSelectorBuilder. elseUse(ElementSelector es)Assigns a default ElementSelector that is used if allwhens have returned false.static ElementSelectorElementSelectors. not(ElementSelector es)Negates another ElementSelector.static ElementSelectorElementSelectors. or(ElementSelector... selectors)Accepts two elements if at least one of the given ElementSelectors does.static ElementSelectorElementSelectors. selectorForElementNamed(String expectedName, ElementSelector es)Applies the wrapped ElementSelector's logic if and only if the control element has the given (local) name.static ElementSelectorElementSelectors. selectorForElementNamed(QName expectedName, ElementSelector es)Applies the wrapped ElementSelector's logic if and only if the control element has the given name.ElementSelectors.ConditionalSelectorBuilderElementSelectors.ConditionalSelectorBuilderThen. thenUse(ElementSelector es)Specifies the ElementSelector to use when the condition holds true.static ElementSelectorElementSelectors. xor(ElementSelector es1, ElementSelector es2)Accepts two elements if exactly on of the given ElementSelectors does.Constructors in org.xmlunit.diff with parameters of type ElementSelector Constructor Description DefaultNodeMatcher(DefaultNodeMatcher.NodeTypeMatcher ntm, ElementSelector... es)Creates a matcher using the givenElementSelectors andDefaultNodeMatcher.NodeTypeMatcher.DefaultNodeMatcher(ElementSelector... es)Creates a matcher using the givenElementSelectors andDefaultNodeMatcher.DefaultNodeTypeMatcher.
-