private static boolean _isAllOfSameType ( Node [ ] nodes , short type ) { for ( int i = 0 ; i < nodes . length ; i ++ ) { if ( nodes [ i ] . getNodeType ( ) != type ) return false ; } return true ; }
Check if all Node are of the type defnined by para meter