public static < T extends UserColumn > T getColumn ( UserTable < T > table , DublinCoreType type ) { T column = null ; if ( table . hasColumn ( type . getName ( ) ) ) { column = table . getColumn ( type . getName ( ) ) ; } else { for ( String synonym : type . getSynonyms ( ) ) { if ( table . hasColumn ( synonym ) ) { column = table . getColumn ( synonym ) ; break ; } } } return column ; }
Get the column from the table for the Dublin Core Type term