Class PatchFilterResolver


  • public class PatchFilterResolver
    extends Object
    author Pascal Knueppel
    created at: 30.10.2019 - 16:20

    • Constructor Detail

      • PatchFilterResolver

        public PatchFilterResolver()
    • Method Detail

      • isNodeMatchingFilter

        public Optional<com.fasterxml.jackson.databind.node.ObjectNode> isNodeMatchingFilter​(com.fasterxml.jackson.databind.node.ObjectNode complexNode,
                                                                                             FilterNode path)
        will check if the given complex node matches the given filter
        Parameters:
        complexNode - the complex type that must be checked if it does fit onto the expression
        path - the filter expression that tells us how the check should be executed
        Returns:
        the complex node from the parameter if the node does match the filter expression, an empty else