org.drools.workbench.screens.guided.dtree.client.widget.utils
Class BindingUtilities
java.lang.Object
org.drools.workbench.screens.guided.dtree.client.widget.utils.BindingUtilities
public class BindingUtilities
- extends Object
Utilities to validate bindings
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BindingUtilities
public BindingUtilities()
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
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.