public static List < Match > searchPlain ( Model model , Pattern pattern ) { List < Match > list = new LinkedList < Match > ( ) ; Map < BioPAXElement , List < Match > > map = search ( model , pattern ) ; for ( List < Match > matches : map . values ( ) ) { list . addAll ( matches ) ; } return list ; }
Searches the pattern in a given model but instead of a match map returns all matches in a list .