public ColorRecord getColorRecord ( String className , String colorName ) { ClassRecord record = getClassRecord ( className ) ; if ( record == null ) { log . warning ( "Requested unknown color class" , "className" , className , "colorName" , colorName , new Exception ( ) ) ; return null ; } int colorId = 0 ; try { colorId = record . getColorId ( colorName ) ; } catch ( ParseException pe ) { log . info ( "Error getting color record by name" , "error" , pe ) ; return null ; } return record . colors . get ( colorId ) ; }
Looks up the requested color record by class and color names .