void parseDAS ( DAS das ) throws IOException { Enumeration tableNames = das . getNames ( ) ; while ( tableNames . hasMoreElements ( ) ) { String tableName = ( String ) tableNames . nextElement ( ) ; AttributeTable attTable = das . getAttributeTableN ( tableName ) ; if ( tableName . equals ( "NC_GLOBAL" ) || tableName . equals ( "HDF_GLOBAL" ) ) { addAttributeTable ( this , attTable , tableName , true ) ; } else if ( tableName . equals ( "DODS_EXTRA" ) || tableName . equals ( "EXTRA_DIMENSION" ) ) { // handled seperately in DODSNetcdfFile continue ; } else { DodsV dodsV = findDodsV ( tableName , false ) ; // short name matches the table name if ( dodsV != null ) { addAttributeTable ( dodsV , attTable , tableName , true ) ; } else { dodsV = findTableDotDelimited ( tableName ) ; if ( dodsV != null ) { addAttributeTable ( dodsV , attTable , tableName , true ) ; } else { if ( debugAttributes ) System . out . println ( "DODSNetcdf getAttributes CANT find <" + tableName + "> add to globals" ) ; addAttributeTable ( this , attTable , tableName , false ) ; } } } } }
Parse the DAS assign attribute tables to the DodsV objects . Nested attribute tables are supposed to follow the tree we construct with dodsV so its easy to assign to correct dodsV .