public boolean linguisticProcessorExists ( String layer , String name , String version ) { List < LinguisticProcessor > layerLPs = lps . get ( layer ) ; if ( layerLPs == null ) { return false ; } for ( LinguisticProcessor lp : layerLPs ) { if ( lp . version == null ) { return false ; } else if ( lp . name . equals ( name ) && lp . version . equals ( version ) ) { return true ; } } return false ; }
Returns wether the given linguistic processor is already defined or not . Both name and version must be exactly the same .