@ Pure public static String getFirstFreeBusItineraryName ( BusLine busline ) { if ( busline == null ) { return null ; } int nb = busline . getBusItineraryCount ( ) ; String name ; do { ++ nb ; name = Locale . getString ( "NAME_TEMPLATE" , Integer . toString ( nb ) ) ; //$NON-NLS-1$ } while ( busline . getBusItinerary ( name ) != null ) ; return name ; }
Replies a bus itinerary name that was not exist in the specified bus line .