org.drools.ide.common.server.util
Class GuidedDTDRLOtherwiseHelper.EqualsOtherwiseBuilder

java.lang.Object
  extended by org.drools.ide.common.server.util.GuidedDTDRLOtherwiseHelper.EqualsOtherwiseBuilder
All Implemented Interfaces:
GuidedDTDRLOtherwiseHelper.OtherwiseBuilder
Enclosing class:
GuidedDTDRLOtherwiseHelper

public static class GuidedDTDRLOtherwiseHelper.EqualsOtherwiseBuilder
extends Object

OtherwiseBuilder for equals operators. This assembles a comma separated list of non-null values contained in other cells in the column and constructs a FieldConstraint with operator "not in" and the derived list: e.g. not in ("a", "b", "c")


Constructor Summary
GuidedDTDRLOtherwiseHelper.EqualsOtherwiseBuilder()
           
 
Method Summary
 FieldConstraint makeFieldConstraint(ConditionCol52 c, List<DTColumnConfig52> allColumns, List<List<DTCellValue52>> data)
          Build a Field Constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuidedDTDRLOtherwiseHelper.EqualsOtherwiseBuilder

public GuidedDTDRLOtherwiseHelper.EqualsOtherwiseBuilder()
Method Detail

makeFieldConstraint

public FieldConstraint makeFieldConstraint(ConditionCol52 c,
                                           List<DTColumnConfig52> allColumns,
                                           List<List<DTCellValue52>> data)
Description copied from interface: GuidedDTDRLOtherwiseHelper.OtherwiseBuilder
Build a Field Constraint

Specified by:
makeFieldConstraint in interface GuidedDTDRLOtherwiseHelper.OtherwiseBuilder
Parameters:
c - Condition Column that contains the "Otherwise" cell
allColumns - All Decision Table columns. Decision Tables have an implied "and" between multiple SingleFieldConstraints for the same Fact field. OtherwiseBuilders for less-than, greater-than etc need access to other Condition Columns bound to the same Fact and Field to construct a CompositeFieldConstraint.
data - Decision Table values
Returns:


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