All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.vagabond.explanation.marker.MarkerSetUtil Maven / Gradle / Ivy

Go to download

Vagabond is a tool for automatic generation of explanations for data exchange errors.

There is a newer version: 1.0.1
Show newest version
package org.vagabond.explanation.marker;

import java.util.HashMap;
import java.util.Map;

public class MarkerSetUtil {

	public static Map partitionOnRelation (IMarkerSet set) {
		Map result;
		
		result = new HashMap ();
		for(ISingleMarker marker : set) {
			String rel = marker.getRel();
			
			if (!result.containsKey(rel)) {
				result.put(rel, MarkerFactory.newMarkerSet());
			}
			result.get(rel).add(marker);
		}
		
		return result;
 	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy