Package org.xmlunit.placeholder
Class IsDateTimePlaceholderHandler
java.lang.Object
org.xmlunit.placeholder.IsDateTimePlaceholderHandler
- All Implemented Interfaces:
PlaceholderHandler
Handler for the
isDateTime
placeholder keyword.- Since:
- 2.7.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private boolean
canParse
(DateFormat fmt, String testText) Evaluate the test value when control contained the placeholder handled by this class.The placeholder keyword this handler is responsible for.
-
Field Details
-
PLACEHOLDER_NAME
- See Also:
-
ISO_PATTERNS
-
-
Constructor Details
-
IsDateTimePlaceholderHandler
public IsDateTimePlaceholderHandler()
-
-
Method Details
-
getKeyword
Description copied from interface:PlaceholderHandler
The placeholder keyword this handler is responsible for.- Specified by:
getKeyword
in interfacePlaceholderHandler
- Returns:
- placeholder keyword this handler is responsible for
-
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.args
- any arguments provided to the placeholder.- Returns:
- the comparison outcome
-
canParse
-
canParse
-