Class PluginFieldSupportKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static <M extends Mismatch> List<M> matchPluginRule(PluginMatcher matcher, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, String category, PluginConfiguration pluginConfiguration) Applies a plugin-provided matching rule to a single value, resolving the rule name against the plugin catalogue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • matchPluginRule

         final static <M extends Mismatch> List<M> matchPluginRule(PluginMatcher matcher, List<String> path, Object expected, Object actual, MismatchFactory<M> mismatchFactory, String category, PluginConfiguration pluginConfiguration)

        Applies a plugin-provided matching rule to a single value, resolving the rule name against the plugin catalogue.

        This is the field-level counterpart of PluginContentMatcher: where that hands a whole body to a plugin that owns the content type, this hands one value to a plugin that owns one rule. See proposal 006, Field-level matchers and generators.

        Parameters:
        path - Path to the value, as a Pact matching rule expression
        category - Part of the interaction the value came from: body, header, metadata, ...