public static int getUrl ( final String group ) { List < AbstractWarningsParser > allParsers = getAllParsers ( ) ; for ( int number = 0 ; number < allParsers . size ( ) ; number ++ ) { if ( allParsers . get ( number ) . isInGroup ( group ) ) { return number ; } } throw new NoSuchElementException ( "No parser found for group: " + group ) ; }
Returns the parser ID which could be used as a URL .