private void addDataVariables ( List < VariableSimpleIF > list , Table t ) { if ( t . parent != null ) addDataVariables ( list , t . parent ) ; for ( VariableSimpleIF col : t . cols . values ( ) ) { if ( t . nondataVars . contains ( col . getFullName ( ) ) ) continue ; if ( t . nondataVars . contains ( col . getShortName ( ) ) ) continue ; // fishy list . add ( col ) ; } }
use recursion so that parent variables come first