void init(List<ColumnMetaData> columnMetaData){
  this.columnMetaData=columnMetaData;
  columnRoles.clear();
  columnNames.clear();
  int columnIndex=0;
  for (  ColumnMetaData column : columnMetaData) {
    addColumnToColumnsMaps(columnIndex,column);
    if (!column.isRemoved()) {
      selectedColumns.add(columnIndex);
    }
    columnIndex++;
  }
  checkForDuplicates();
}

void init ( List < ColumnMetaData > columnMetaData ) { this . columnMetaData = columnMetaData ; columnRoles . clear ( ) ; columnNames . clear ( ) ; int columnIndex = 0 ; for ( ColumnMetaData column : columnMetaData ) { addColumnToColumnsMaps ( columnIndex , column ) ; if ( ! column . isRemoved ( ) ) { selectedColumns . add ( columnIndex ) ; } columnIndex ++ ; } checkForDuplicates ( ) ; }
initializes the validator with the given columnmetadata .
