/***************************************************************************** * Copyright (c) 2010 CEA LIST. * * * 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: * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation * *****************************************************************************/ package org.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.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.eclipse.papyrus.MARTE.MARTE_DesignModel.HRM.HwGeneral.HwGeneralPackage; /** * This class contains helper methods to serialize and deserialize XML documents * * * @generated */ public class HwGeneralXMLProcessor extends XMLProcessor { /** * Public constructor to instantiate the helper. * * * @generated */ public HwGeneralXMLProcessor() { super((EPackage.Registry.INSTANCE)); HwGeneralPackage.eINSTANCE.eClass(); } /** * Register for "*" and "xml" file extensions the HwGeneralResourceFactoryImpl factory. * * * @generated */ @Override protected Map getRegistrations() { if (registrations == null) { super.getRegistrations(); registrations.put(XML_EXTENSION, new HwGeneralResourceFactoryImpl()); registrations.put(STAR_EXTENSION, new HwGeneralResourceFactoryImpl()); } return registrations; } } //HwGeneralXMLProcessor