Class BindingUtilities
- java.lang.Object
-
- org.drools.workbench.screens.guided.dtree.client.widget.utils.BindingUtilities
-
public class BindingUtilities extends Object
Utilities to validate bindings
-
-
Constructor Summary
Constructors Constructor Description BindingUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisUniqueInPath(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.
-
-
-
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 checknode- Node that is to be bound. The check is ran from this node's parent upwards.- Returns:
- true if the binding is unique
-
-