Class BindingUtilities


  • public class BindingUtilities
    extends Object
    Utilities to validate bindings
    • Constructor Detail

      • BindingUtilities

        public BindingUtilities()
    • Method Detail

      • isUniqueInPath

        public static boolean isUniqueInPath​(String binding,
                                             org.drools.workbench.models.guided.dtree.shared.model.nodes.Node node)
        Check whether the binding is unique on the path ascending the tree from the given node to root. Type and/or Field bindings only need to be unique along each path from leaf to root.
        Parameters:
        binding - Binding to check
        node - Node that is to be bound. The check is ran from this node's parent upwards.
        Returns:
        true if the binding is unique