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

org.nasdanika.models.architecture.util.ArchitectureDrawioFactory Maven / Gradle / Ivy

package org.nasdanika.models.architecture.util;

import java.util.LinkedHashMap;
import java.util.Map;

import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.nasdanika.graph.model.util.GraphDrawioFactory;
import org.nasdanika.models.architecture.ArchitecturePackage;
import org.nasdanika.models.architecture.c4.C4Package;

/**
 * Factory for mapping drawio model to graph model
 * @param 
 * @param 
 */
public abstract class ArchitectureDrawioFactory extends GraphDrawioFactory {

	public ArchitectureDrawioFactory(ResourceSet resourceSet) {
		super(resourceSet);
		// TODO Auto-generated constructor stub
	}

	/**
	 * Returns a map with graph and ncore entries.
	 */
	@Override
	protected Map getEPackages() {		
		Map ret = new LinkedHashMap<>();
		ret.put("architecture", ArchitecturePackage.eINSTANCE);
		ret.put("c4", C4Package.eINSTANCE);
		ret.putAll(super.getEPackages());
		return ret;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy