/***************************************************************************** * 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: * Sara TUCCI (CEA LIST) sara.tucci@cea.fr - Initial API and implementation * Chokri MRAIDHA (CEA LIST) chokri.mraidha@cea.fr - Initial API and implementation * David SERVAT (CEA LIST) david.servat@cea.fr - Initial API and implementation * *****************************************************************************/ package org.eclipse.papyrus.eastadl.dependability.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.eastadl.dependability.DependabilityPackage; /** * This class contains helper methods to serialize and deserialize XML documents * * * * @generated */ public class DependabilityXMLProcessor extends XMLProcessor { /** * Public constructor to instantiate the helper. * * * * @generated */ public DependabilityXMLProcessor() { super((EPackage.Registry.INSTANCE)); DependabilityPackage.eINSTANCE.eClass(); } /** * Register for "*" and "xml" file extensions the DependabilityResourceFactoryImpl factory. * * * * @generated */ @Override protected Map getRegistrations() { if (registrations == null) { super.getRegistrations(); registrations.put(XML_EXTENSION, new DependabilityResourceFactoryImpl()); registrations.put(STAR_EXTENSION, new DependabilityResourceFactoryImpl()); } return registrations; } } // DependabilityXMLProcessor