/** * Check if given item matching with current reference criteria * @param a item to check for matching * @param contracts contract list to check for matching * @return true if match or false */ public boolean isMatchingWith(Approvable a, Collection<Contract> contracts) { return isMatchingWith(a, contracts, 0); }
if (refLink.isMatchingWith(checkedContract, contracts, iteration + 1)) rightOperandContract = checkedContract;
(rm.contract_id != null && rm.contract_id.equals(neighbour.id))) && checkOneReference(rm, neighbour)) || (rm.getConditions().size() > 0)) // new format of reference with conditions, transactional_id - optional if (rm.isMatchingWith(neighbour, neighbours)) { rm.addMatchingItem(neighbour); rm_check = true; if(rm.isMatchingWith(neighbour,neighbours)) { rm.addMatchingItem(neighbour);
if (ref.isMatchingWith(checkedContract, contracts, iteration + 1)) leftOperandContract = checkedContract; if (ref.isMatchingWith(checkedContract, contracts, iteration + 1)) leftOperandContract = checkedContract; if (ref.isMatchingWith(checkedContract, contracts, iteration + 1)) rightOperandContract = checkedContract; throw new IllegalArgumentException("Expected reference in condition in right operand: " + rightOperand); ret = ((Reference) right).isMatchingWith(refContract, contracts, iteration + 1);