@ SuppressWarnings ( "unchecked" ) public < T extends AbstractJaxb > TableBuilder addTr ( List < Object > tdList , Map < String , Object > attrMap ) throws TagTypeUnmatchException { tr tr = new tr ( ) ; tr . setAttr ( attrMap ) ; for ( Object obj : tdList ) { if ( obj instanceof String ) { tr . addTd ( ( String ) obj ) ; } else if ( obj instanceof AbstractJaxb ) { tr . addTd ( ( T ) obj ) ; } else { throw new TagTypeUnmatchException ( "String or other tag object expected but tdList contains " + obj . getClass ( ) . getName ( ) ) ; } } trList . add ( tr ) ; return this ; }
add new tr having td tags that has content of each value of list . The new tr tag have specifed attributes .