public static boolean validateTableRows ( final Element table ) { assert table != null ; assert table . getNodeName ( ) . equals ( "table" ) || table . getNodeName ( ) . equals ( "informaltable" ) ; final NodeList tgroups = table . getElementsByTagName ( "tgroup" ) ; for ( int i = 0 ; i < tgroups . getLength ( ) ; i ++ ) { final Element tgroup = ( Element ) tgroups . item ( i ) ; if ( ! validateTableGroup ( tgroup ) ) return false ; } return true ; }
Check to ensure that a table isn t missing any entries in its rows .