Class MatchesRegexPlaceholderHandler

  • All Implemented Interfaces:
    PlaceholderHandler

    public class MatchesRegexPlaceholderHandler
    extends java.lang.Object
    implements PlaceholderHandler
    Handler for the matchesRegex() placeholder keyword.
    Since:
    2.7.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String PLACEHOLDER_NAME  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ComparisonResult evaluate​(java.lang.String testText, java.lang.String... param)
      Evaluate the test value when control contained the placeholder handled by this class.
      private boolean evaluate​(java.lang.String testText, java.util.regex.Pattern pattern)  
      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
    • Constructor Detail

      • MatchesRegexPlaceholderHandler

        public MatchesRegexPlaceholderHandler()
    • Method Detail

      • evaluate

        public ComparisonResult evaluate​(java.lang.String testText,
                                         java.lang.String... param)
        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.
        param - any arguments provided to the placeholder.
      • evaluate

        private boolean evaluate​(java.lang.String testText,
                                 java.util.regex.Pattern pattern)