List<AttributeCol52> attributeCols,
List<DTCellValue52> row,
RuleModel rm ) {
List<RuleAttribute> attribs = new ArrayList<RuleAttribute>();
for ( int j = 0; j < attributeCols.size(); j++ ) {
AttributeCol52 at = attributeCols.get( j );
int index = allColumns.indexOf( at );
String cell = GuidedDTDRLUtilities.convertDTCellValueToString( row.get( index ) );
if ( validCell( cell ) ) {
//If instance of "otherwise" column then flag RuleModel as being negated
if ( at.getAttribute().equals( GuidedDecisionTable52.NEGATE_RULE_ATTR ) ) {
rm.setNegated( Boolean.valueOf( cell ) );
} else {
attribs.add( new RuleAttribute( at.getAttribute(),
cell ) );
}
}
}
if ( attribs.size() > 0 ) {