Package org.xmlunit.placeholder
Class MatchesRegexPlaceholderHandler
- java.lang.Object
-
- org.xmlunit.placeholder.MatchesRegexPlaceholderHandler
-
- All Implemented Interfaces:
PlaceholderHandler
public class MatchesRegexPlaceholderHandler extends java.lang.Object implements PlaceholderHandler
Handler for thematchesRegex()placeholder keyword.- Since:
- 2.7.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringPLACEHOLDER_NAME
-
Constructor Summary
Constructors Constructor Description MatchesRegexPlaceholderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResultevaluate(java.lang.String testText, java.lang.String... param)Evaluate the test value when control contained the placeholder handled by this class.private booleanevaluate(java.lang.String testText, java.util.regex.Pattern pattern)java.lang.StringgetKeyword()The placeholder keyword this handler is responsible for.
-
-
-
Field Detail
-
PLACEHOLDER_NAME
private static final java.lang.String PLACEHOLDER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKeyword
public java.lang.String getKeyword()
Description copied from interface:PlaceholderHandlerThe placeholder keyword this handler is responsible for.- Specified by:
getKeywordin interfacePlaceholderHandler
-
evaluate
public ComparisonResult evaluate(java.lang.String testText, java.lang.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.
-
evaluate
private boolean evaluate(java.lang.String testText, java.util.regex.Pattern pattern)
-
-