Package org.xmlunit.placeholder
Class MatchesRegexPlaceholderHandler
- java.lang.Object
-
- org.xmlunit.placeholder.MatchesRegexPlaceholderHandler
-
- All Implemented Interfaces:
PlaceholderHandler
public class MatchesRegexPlaceholderHandler extends Object implements PlaceholderHandler
Handler for thematchesRegex()placeholder keyword.- Since:
- 2.7.0
-
-
Constructor Summary
Constructors Constructor Description MatchesRegexPlaceholderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResultevaluate(String testText, String... param)Evaluate the test value when control contained the placeholder handled by this class.StringgetKeyword()The placeholder keyword this handler is responsible for.
-
-
-
Method Detail
-
getKeyword
public String getKeyword()
Description copied from interface:PlaceholderHandlerThe placeholder keyword this handler is responsible for.- Specified by:
getKeywordin interfacePlaceholderHandler- Returns:
- placeholder keyword this handler is responsible for
-
evaluate
public ComparisonResult evaluate(String testText, String... param)
Description copied from interface:PlaceholderHandlerEvaluate the test value when control contained the placeholder handled by this class.- Specified by:
evaluatein interfacePlaceholderHandler- Parameters:
testText- the textual content of the element or attribute this placeholder has been added to.param- any arguments provided to the placeholder.- Returns:
- the comparison outcome
-
-