// setup temp list
List<RuleMetadata> metadataList = new ArrayList<RuleMetadata>();
for ( int j = 0; j < metadataCols.size(); j++ ) {
MetadataCol52 meta = metadataCols.get( j );
int index = allColumns.indexOf( meta );
String cell = GuidedDTDRLUtilities.convertDTCellValueToString( row.get( index ) );
if ( validCell( cell ) ) {
metadataList.add( new RuleMetadata( meta.getMetadata(),
cell ) );
}
}
if ( metadataList.size() > 0 ) {
rm.metadataList = metadataList.toArray( new RuleMetadata[ metadataList.size() ] );