Drools Workbench - Guided Decision Tree Editor - Client 6.2.0.CR1

org.drools.workbench.screens.guided.dtree.client.widget.utils
Class BindingUtilities

java.lang.Object
  extended by org.drools.workbench.screens.guided.dtree.client.widget.utils.BindingUtilities

public class BindingUtilities
extends Object

Utilities to validate bindings


Constructor Summary
BindingUtilities()
           
 
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
 

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

Drools Workbench - Guided Decision Tree Editor - Client 6.2.0.CR1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.