static public TableAnalyzer factory ( TableConfigurer tc , FeatureType wantFeatureType , NetcdfDataset ds ) throws IOException { // Create a TableAnalyzer with this TableConfigurer (may be null) TableAnalyzer analyzer = new TableAnalyzer ( ds , tc ) ; if ( tc != null ) { if ( tc . getConvName ( ) == null ) analyzer . userAdvice . format ( " No 'Conventions' global attribute.%n" ) ; else analyzer . userAdvice . format ( " Conventions global attribute = %s %n" , tc . getConvName ( ) ) ; // add the convention name used if ( tc . getConvUsed ( ) != null ) { analyzer . setConventionUsed ( tc . getConvUsed ( ) ) ; if ( ! tc . getConvUsed ( ) . equals ( tc . getConvName ( ) ) ) analyzer . userAdvice . format ( " TableConfigurer used = " + tc . getConvUsed ( ) + ".%n" ) ; } } else { analyzer . userAdvice . format ( " No TableConfigurer found, using default analysis.%n" ) ; } // construct the nested table object analyzer . analyze ( wantFeatureType ) ; return analyzer ; }
Create a TableAnalyser for this dataset with the given TableConfigurer