blob: 9e008777dfb6cdd949254c8d042c717805c6be9a [file] [log] [blame]
/*******************************************************************************
* CHESS core plugin
*
* Copyright (C) 2011-2015
* Mälardalen University, Sweden
*
*
* 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
*******************************************************************************/
package org.polarsys.chess.fla.flamm.util;
import java.util.Map;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
import org.polarsys.chess.fla.flamm.FlammPackage;
/**
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class FlammXMLProcessor extends XMLProcessor {
/**
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FlammXMLProcessor() {
super((EPackage.Registry.INSTANCE));
FlammPackage.eINSTANCE.eClass();
}
/**
* Register for "*" and "xml" file extensions the FlammResourceFactoryImpl factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
protected Map<String, Resource.Factory> getRegistrations() {
if (registrations == null) {
super.getRegistrations();
registrations.put(XML_EXTENSION, new FlammResourceFactoryImpl());
registrations.put(STAR_EXTENSION, new FlammResourceFactoryImpl());
}
return registrations;
}
} //FlammXMLProcessor