public void check(ComplexAssembly complexAssembly, boolean fix) { // check if there are any complexes on either side Set<Complex> complexes = new ClassFilterSet<Entity,Complex>(complexAssembly.getParticipant(), Complex.class); if(complexes.isEmpty()) { boolean bound = isBound(complexAssembly.getRight()); if(!bound) bound = isBound(complexAssembly.getLeft()); if(!bound) error(complexAssembly, "complex.not.present", false); } }
public void check(final Validation validation, ComplexAssembly complexAssembly) { // check if there are any complexes on either side Set<Complex> complexes = new ClassFilterSet<Entity,Complex>(complexAssembly.getParticipant(), Complex.class); if(complexes.isEmpty()) { boolean bound = isBound(complexAssembly.getRight()); if(!bound) bound = isBound(complexAssembly.getLeft()); if(!bound) error(validation, complexAssembly, "complex.not.present", false); } }