public Map<String, String> getInMappings() { Map<String, String> in = new HashMap<String, String>(); for (DataAssociation a : inMapping) { if (a.getSources().size() == 1 && (a.getAssignments() == null || a.getAssignments().size() == 0) && a.getTransformation() == null) { in.put(a.getTarget(), a.getSources().get(0)); } } return in; }
public Map<String, String> getOutMappings() { Map<String, String> out = new HashMap<String, String>(); for (DataAssociation a : outMapping) { if (a.getSources().size() == 1 && (a.getAssignments() == null || a.getAssignments().size() == 0) && a.getTransformation() == null) { out.put(a.getSources().get(0), a.getTarget()); } } return out; }