Package org.xmlunit.placeholder
Class MatchesRegexPlaceholderHandler
java.lang.Object
org.xmlunit.placeholder.MatchesRegexPlaceholderHandler
- All Implemented Interfaces:
PlaceholderHandler
Handler for the
matchesRegex()
placeholder keyword.- Since:
- 2.7.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEvaluate the test value when control contained the placeholder handled by this class.private boolean
The placeholder keyword this handler is responsible for.
-
Field Details
-
PLACEHOLDER_NAME
- See Also:
-
-
Constructor Details
-
MatchesRegexPlaceholderHandler
public MatchesRegexPlaceholderHandler()
-
-
Method Details
-
getKeyword
Description copied from interface:PlaceholderHandler
The placeholder keyword this handler is responsible for.- Specified by:
getKeyword
in interfacePlaceholderHandler
-
evaluate
Description copied from interface:PlaceholderHandler
Evaluate the test value when control contained the placeholder handled by this class.- Specified by:
evaluate
in interfacePlaceholderHandler
- Parameters:
testText
- the textual content of the element or attribute this placeholder has been added to.param
- any arguments provided to the placeholder.
-
evaluate
-