Package org.xmlunit.placeholder
Class IsNumberPlaceholderHandler
- java.lang.Object
-
- org.xmlunit.placeholder.IsNumberPlaceholderHandler
-
- All Implemented Interfaces:
PlaceholderHandler
public class IsNumberPlaceholderHandler extends java.lang.Object implements PlaceholderHandler
Handler for theisNumber
placeholder keyword.- Since:
- 2.6.3
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NUMBER_PATTERN
private static java.lang.String
PLACEHOLDER_NAME
-
Constructor Summary
Constructors Constructor Description IsNumberPlaceholderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComparisonResult
evaluate(java.lang.String testText)
Evaluate the test value when control contained the placeholder handled by this class.java.lang.String
getKeyword()
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
-
NUMBER_PATTERN
private static final java.lang.String NUMBER_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKeyword
public java.lang.String getKeyword()
Description copied from interface:PlaceholderHandler
The placeholder keyword this handler is responsible for.- Specified by:
getKeyword
in interfacePlaceholderHandler
-
evaluate
public ComparisonResult evaluate(java.lang.String testText)
Description copied from interface:PlaceholderHandler
Evaluate the test value when control contained the placeholder handled by this class.- Specified by:
evaluate
in interfacePlaceholderHandler
-
-