Class IsDateTimePlaceholderHandler

  • All Implemented Interfaces:
    PlaceholderHandler

    public class IsDateTimePlaceholderHandler
    extends java.lang.Object
    implements PlaceholderHandler
    Handler for the isDateTime 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  
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • IsDateTimePlaceholderHandler

        public IsDateTimePlaceholderHandler()
    • 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 interface PlaceholderHandler
        Returns:
        placeholder keyword this handler is responsible for
      • 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 interface PlaceholderHandler
        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

        private boolean canParse​(java.lang.String testText)
      • canParse

        private boolean canParse​(java.text.DateFormat fmt,
                                 java.lang.String testText)