Package org.xmlunit.diff
Interface ElementSelectors.ConditionalSelectorBuilder
- All Known Implementing Classes:
DefaultConditionalSelectorBuilder
- Enclosing class:
- ElementSelectors
public static interface ElementSelectors.ConditionalSelectorBuilder
Allows to build complex
ElementSelector
s by combining simpler blocks.
All when*
s are consulted in order and if one returns
true
then the associated ElementSelector
is
used. If all of the, return false
, the default set up
with elseUse
if any is used.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a conditional ElementSelector.Assigns a default ElementSelector that is used if allwhen
s have returned false.Sets up a conditional ElementSelector.whenElementIsNamed
(String expectedName) Sets up a conditional ElementSelector.whenElementIsNamed
(QName expectedName) Sets up a conditional ElementSelector.
-
Method Details
-
when
Sets up a conditional ElementSelector. -
whenElementIsNamed
Sets up a conditional ElementSelector. -
whenElementIsNamed
Sets up a conditional ElementSelector. -
elseUse
Assigns a default ElementSelector that is used if allwhen
s have returned false. -
build
ElementSelector build()Builds a conditional ElementSelector.
-