private void nameDatasets ( InvDatasetImpl datasetContainer ) { if ( this . getDatasetNamerList ( ) . isEmpty ( ) ) return ; if ( this . isFlatten ( ) ) { logger . debug ( "nameDatasets(): structure is FLAT calling nameDatasetList()" ) ; this . nameDatasetList ( datasetContainer ) ; } else { logger . debug ( "nameDatasets(): structure is DIRECTORY_TREE calling" + " nameDatasetTree() on each dataset in dataset container" ) ; InvDatasetImpl curDs = null ; for ( int j = 0 ; j < datasetContainer . getDatasets ( ) . size ( ) ; j ++ ) { curDs = ( InvDatasetImpl ) datasetContainer . getDatasets ( ) . get ( j ) ; this . nameDatasetTree ( curDs ) ; } } return ; }
Use the list of dsNamers to name the given list of datasets .