Uses of Interface
org.xmlunit.diff.ElementSelector
-
Packages that use ElementSelector Package Description org.custommonkey.xmlunit Root of the XMLUnit 1.x compatibility layer.org.custommonkey.xmlunit.examples org.xmlunit.diff Contains XMLUnitDifferenceEngine
that is at the heart of all comparisons as well as supporting interfaces and implementations. -
-
Uses of ElementSelector in org.custommonkey.xmlunit
Classes in org.custommonkey.xmlunit that implement ElementSelector Modifier and Type Class Description static class
NewDifferenceEngine.ElementQualifier2ElementSelector
Fields in org.custommonkey.xmlunit declared as ElementSelector Modifier and Type Field Description private ElementSelector
ElementNameAndAttributeQualifier. selector
Fields in org.custommonkey.xmlunit with type parameters of type ElementSelector Modifier and Type Field Description private static java.util.Map<java.lang.Class<? extends ElementQualifier>,ElementSelector>
NewDifferenceEngine. KNOWN_SELECTORS
-
Uses of ElementSelector in org.custommonkey.xmlunit.examples
Fields in org.custommonkey.xmlunit.examples declared as ElementSelector Modifier and Type Field Description private ElementSelector
MultiLevelElementNameAndTextQualifier. es
private ElementSelector
RecursiveElementNameAndTextQualifier. es
-
Uses of ElementSelector in org.xmlunit.diff
Classes in org.xmlunit.diff that implement ElementSelector Modifier and Type Class Description class
ByNameAndTextRecSelector
ElementSelector
that 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.private static class
DefaultConditionalSelectorBuilder.ConditionalSelector
class
MultiLevelByNameAndTextSelector
ElementSelector
that 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 ElementSelector
ElementSelectors. byName
Elements with the same local name (and namespace URI - if any) can be compared.static ElementSelector
ElementSelectors. byNameAndAllAttributes
Elements with the same local name (and namespace URI - if any) and attribute values for all attributes can be compared.static ElementSelector
ElementSelectors. byNameAndText
Elements with the same local name (and namespace URI - if any) and nested text (if any) can be compared.static ElementSelector
ElementSelectors. Default
Always returns true, i.e.private ElementSelector
DefaultConditionalSelectorBuilder.ConditionalSelector. defaultSelector
private ElementSelector
DefaultConditionalSelectorBuilder. defaultSelector
private ElementSelector[]
DefaultNodeMatcher. elementSelectors
Fields in org.xmlunit.diff with type parameters of type ElementSelector Modifier and Type Field Description private java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector>
DefaultConditionalSelectorBuilder.ConditionalSelector. conditionalSelectors
private java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector>
DefaultConditionalSelectorBuilder. conditionalSelectors
Methods in org.xmlunit.diff that return ElementSelector Modifier and Type Method Description static ElementSelector
ElementSelectors. and(ElementSelector... selectors)
Accepts two elements if all of the given ElementSelectors do.ElementSelector
DefaultConditionalSelectorBuilder. build()
ElementSelector
ElementSelectors.ConditionalSelectorBuilder. build()
Builds a conditional ElementSelector.static ElementSelector
ElementSelectors. byNameAndAttributes(java.lang.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 ElementSelector
ElementSelectors. byNameAndAttributes(javax.xml.namespace.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 ElementSelector
ElementSelectors. byNameAndAttributesControlNS(java.lang.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 ElementSelector
ElementSelectors. byXPath(java.lang.String xpath, java.util.Map<java.lang.String,java.lang.String> prefix2Uri, ElementSelector childSelector)
Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelector
ElementSelectors. byXPath(java.lang.String xpath, ElementSelector childSelector)
Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelector
ElementSelectors. conditionalSelector(Predicate<? super org.w3c.dom.Element> predicate, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element matches the given predicate.static ElementSelector
ElementSelectors. not(ElementSelector es)
Negates another ElementSelector.static ElementSelector
ElementSelectors. or(ElementSelector... selectors)
Accepts two elements if at least one of the given ElementSelectors does.static ElementSelector
ElementSelectors. selectorForElementNamed(java.lang.String expectedName, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element has the given (local) name.static ElementSelector
ElementSelectors. selectorForElementNamed(javax.xml.namespace.QName expectedName, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element has the given name.static ElementSelector
ElementSelectors. 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 ElementSelector
ElementSelectors. and(ElementSelector... selectors)
Accepts two elements if all of the given ElementSelectors do.static ElementSelector
ElementSelectors. byXPath(java.lang.String xpath, java.util.Map<java.lang.String,java.lang.String> prefix2Uri, ElementSelector childSelector)
Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelector
ElementSelectors. byXPath(java.lang.String xpath, ElementSelector childSelector)
Selects two elements as matching if the child elements selected via XPath match using the given childSelector.static ElementSelector
ElementSelectors. conditionalSelector(Predicate<? super org.w3c.dom.Element> predicate, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element matches the given predicate.ElementSelectors.ConditionalSelectorBuilder
DefaultConditionalSelectorBuilder. elseUse(ElementSelector es)
ElementSelectors.ConditionalSelectorBuilder
ElementSelectors.ConditionalSelectorBuilder. elseUse(ElementSelector es)
Assigns a default ElementSelector that is used if allwhen
s have returned false.private boolean
DefaultNodeMatcher. nodesMatch(org.w3c.dom.Node n1, org.w3c.dom.Node n2, ElementSelector elementSelector)
static ElementSelector
ElementSelectors. not(ElementSelector es)
Negates another ElementSelector.static ElementSelector
ElementSelectors. or(ElementSelector... selectors)
Accepts two elements if at least one of the given ElementSelectors does.private DefaultNodeMatcher.Match
DefaultNodeMatcher. searchIn(org.w3c.dom.Node searchFor, java.util.List<org.w3c.dom.Node> searchIn, java.util.Set<java.lang.Integer> availableIndexes, int fromInclusive, int toExclusive, ElementSelector e)
static ElementSelector
ElementSelectors. selectorForElementNamed(java.lang.String expectedName, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element has the given (local) name.static ElementSelector
ElementSelectors. selectorForElementNamed(javax.xml.namespace.QName expectedName, ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the control element has the given name.boolean
ElementSelectors.CanBeComparedPredicate. test(ElementSelector es)
ElementSelectors.ConditionalSelectorBuilder
DefaultConditionalSelectorBuilder. thenUse(ElementSelector es)
ElementSelectors.ConditionalSelectorBuilder
ElementSelectors.ConditionalSelectorBuilderThen. thenUse(ElementSelector es)
Specifies the ElementSelector to use when the condition holds true.static ElementSelector
ElementSelectors. 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 ConditionalSelector(java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector> conditionalSelectors, ElementSelector defaultSelector)
DefaultNodeMatcher(DefaultNodeMatcher.NodeTypeMatcher ntm, ElementSelector... es)
Creates a matcher using the givenElementSelector
s andDefaultNodeMatcher.NodeTypeMatcher
.DefaultNodeMatcher(ElementSelector... es)
Creates a matcher using the givenElementSelector
s andDefaultNodeMatcher.DefaultNodeTypeMatcher
.Constructor parameters in org.xmlunit.diff with type arguments of type ElementSelector Constructor Description ConditionalSelector(java.util.Map<Predicate<? super org.w3c.dom.Element>,ElementSelector> conditionalSelectors, ElementSelector defaultSelector)
-