public List<String> getExactList() { if (matchList == null) { matchList = new ArrayList<String>(); for (ResultElement resultElement : this) { String name = resultElement.getExact(); matchList.add(name); } } return matchList; }
public void lookup(Map<String, AbstractLookup> lookupInstanceByName, List<String> lookupNames) { if (lookupInstanceByName != null && lookupNames != null) { for (String lookupName : lookupNames) { AbstractLookup abstractLookup = lookupInstanceByName.get(lookupName); for (ResultElement element : resultElementList) { String exact = element.getExact(); try { String lookupId = abstractLookup.lookup(exact); element.setId(lookupName, lookupId); } catch (IOException e) { LOG.debug("lookup failed", e); } } } } }