Package org.xmlunit.placeholder
Class IsDateTimePlaceholderHandler
- java.lang.Object
-
- org.xmlunit.placeholder.IsDateTimePlaceholderHandler
-
- All Implemented Interfaces:
PlaceholderHandler
public class IsDateTimePlaceholderHandler extends java.lang.Object implements PlaceholderHandler
Handler for theisDateTime
placeholder keyword.- Since:
- 2.7.0
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.lang.String>
ISO_PATTERNS
private static java.lang.String
PLACEHOLDER_NAME
-
Constructor Summary
Constructors Constructor Description IsDateTimePlaceholderHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
canParse(java.lang.String testText)
private boolean
canParse(java.text.DateFormat fmt, java.lang.String testText)
ComparisonResult
evaluate(java.lang.String testText, java.lang.String... args)
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
-
ISO_PATTERNS
private static final java.util.List<java.lang.String> ISO_PATTERNS
-
-
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, java.lang.String... args)
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.
-
canParse
private boolean canParse(java.lang.String testText)
-
canParse
private boolean canParse(java.text.DateFormat fmt, java.lang.String testText)
-
-