private List < String > getCommand ( Element trNode ) { List < String > result = new ArrayList < String > ( ) ; Elements trChildNodes = trNode . getElementsByTag ( "TD" ) ; for ( Element trChild : trChildNodes ) { result . add ( getTableDataValue ( trChild ) ) ; } if ( result . size ( ) != 1 && result . size ( ) != 3 ) { throw new RuntimeException ( "Something strange" ) ; // FIXME } return result ; }
processing table row