blob: 2874b25d4be6b94a0e9e2bee75e7b64672fb4fb9 [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.flaxml.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.flaxml.FlaxmlPackage;
/**
* This class contains helper methods to serialize and deserialize XML documents
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public class FlaxmlXMLProcessor extends XMLProcessor {
/**
* Public constructor to instantiate the helper.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public FlaxmlXMLProcessor() {
super((EPackage.Registry.INSTANCE));
FlaxmlPackage.eINSTANCE.eClass();
}
/**
* Register for "*" and "xml" file extensions the FlaxmlResourceFactoryImpl 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 FlaxmlResourceFactoryImpl());
registrations.put(STAR_EXTENSION, new FlaxmlResourceFactoryImpl());
}
return registrations;
}
} //FlaxmlXMLProcessor