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

org.eclipse.epsilon.hutn.IHutnModule Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2008 The University of York.
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 * 
 * Contributors:
 *     Louis Rose - initial API and implementation
 ******************************************************************************/
package org.eclipse.epsilon.hutn;

import java.io.File;
import java.util.List;
import org.eclipse.epsilon.common.module.IModule;
import org.eclipse.epsilon.emc.emf.AbstractEmfModel;
import org.eclipse.epsilon.hutn.exceptions.HutnGenerationException;
import org.eclipse.epsilon.hutn.model.hutn.Spec;

public interface IHutnModule extends IModule {
	
	/**
	 * @return an in-memory EMF model for the HUTN source passed to
	 * parse.
	 * @throws HutnGenerationException
	 */
	public AbstractEmfModel generateEmfModel() throws HutnGenerationException;

	/**
	 * 

Generates an EMF model for the HUTN source passed to parse.

* *

The model is stored in the given baseDirectory, with filename * defaultModelPath. The HUTN source may contain a modelFile attribute * (in a model package, in the Spec preamble). When a modelFile * attribute is specified in the HUTN source, that value takes * precedence over defaultModelPath.

* *

When a metamodel is inferred (because no metamodel is specfied in * the Spec preamble), it is generated in the given baseDirectory, * with filename inferredMetamodelPath.

* * @param baseDirectory * @param defaultModelPath * @param inferredMetamodelPath * * @return the list of Files generated by this method invocation. * * @throws HutnGenerationException */ public List storeEmfModel(File baseDirectory, String defaultModelPath, String inferredMetamodelPath) throws HutnGenerationException; public boolean hasValidMetaModel(); public List getNsUris(); public String getModelFile(); public void setConfigFileDirectory(File configFileDirectory); public Spec getIntermediateModel(); public void storeIntermediateModel(File destination); public void storeIntermediateModelTransformation(File destination) throws HutnGenerationException; public void storeIntermediateModelTransformationForAllInputModels(File destination) throws HutnGenerationException; /** * Returns false only if the HUTN source passed to parse is not valid HUTN. * True is returned when the HUTN is valid, regardless of whether it conforms * to the metamodel specified in the preamble. */ public boolean hasValidHutn(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy