blob: de89485717503a44ea54f3a0a35100bed3b4de7c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 INRIA.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Frederic Jouault (INRIA) - initial API and implementation
* Dennis Wagelaar (Vrije Universiteit Brussel)
*******************************************************************************/
package org.eclipse.m2m.atl.drivers.emf4atl;
import org.eclipse.m2m.atl.engine.vm.AtlModelHandler;
import org.eclipse.m2m.atl.engine.vm.ModelLoader;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel;
/**
* The model handler dedicated to EMF.
*
* @author <a href="mailto:frederic.jouault@univ-nantes.fr">Frederic Jouault</a>
* @author <a href="mailto:dennis.wagelaar@vub.ac.be">Dennis Wagelaar</a>
*/
public class AtlEMFModelHandler extends AtlModelHandler {
/** The model handler extension id. */
public static final String ID = "EMF";
/**
* {@inheritDoc}
*
* @see org.eclipse.m2m.atl.engine.vm.AtlModelHandler#isHandling(org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel)
*/
public boolean isHandling(ASMModel model) {
return model instanceof ASMEMFModel;
}
/**
* {@inheritDoc}
*
* @see org.eclipse.m2m.atl.engine.vm.AtlModelHandler#createModelLoader()
*/
public ModelLoader createModelLoader() {
return new EMFModelLoader();
}
}