Class IsNumberPlaceholderHandler

java.lang.Object
org.xmlunit.placeholder.IsNumberPlaceholderHandler
All Implemented Interfaces:
PlaceholderHandler

public class IsNumberPlaceholderHandler extends Object implements PlaceholderHandler
Handler for the isNumber placeholder keyword.
Since:
2.6.3
  • Constructor Details

    • IsNumberPlaceholderHandler

      public IsNumberPlaceholderHandler()
  • Method Details

    • getKeyword

      public 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(String testText, 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.
      Returns:
      the comparison outcome