Interface PlaceholderHandler

  • All Known Implementing Classes:
    IgnorePlaceholderHandler, IsNumberPlaceholderHandler

    public interface PlaceholderHandler
    Interface implemented by classes that are responsible for a placeholder keyword.

    This class and the whole module are considered experimental and any API may change between releases of XMLUnit.

    Implementations are expected to be thread-safe, the evaluate(java.lang.String) method may be invoked by multiple threads in parallel.

    Since:
    2.6.0
    • Method Detail

      • getKeyword

        java.lang.String getKeyword()
        The placeholder keyword this handler is responsible for.
      • evaluate

        ComparisonResult evaluate​(java.lang.String testText)
        Evaluate the test value when control contained the placeholder handled by this class.